Entity Reference Facet Link

Component ID

2894071

Component name

Entity Reference Facet Link

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

425

Component created

Component changed

Component body

Entity Reference Facet Link is a Drupal 8 module that provides a formatter plugin for entity reference fields, including taxonomy term reference fields. It will allow you to display those entity references as links to a faceted search page.

Here is an example use case: Say you have a faceted search page, for instance one created using the Views; Search API; and Facets modules, that displays nodes containing a taxonomy field. That taxonomy field is used as a facet on your search page. If you went to a node and clicked on the link provided by the default formatter for the taxonomy term, it would take you to that term's default view page. This may be bad for usability. Instead, you may want that term to link back to the search page which is filtered by that facet. This module will give you that ability.

Check out the documentation pages for more info!

New in Beta 3!

ERFL now contains two field formatters! If you only want to link entity labels to the facets then the Facet Link formatter will suffice for you. If you want to create more advanced displays in Views then the new Facet URL formatter can help. It will output a raw URL to entity facets, which can then be used as a token to rewrite other fields as links to the facet too!

Issues

#2894730: The URL processor assumes the request is on the source path
The documentation says that ERFL is compatible with Facet Pretty Paths and that is 100% true, but this FPP bug causes an issue with the link URL processing.

#2865710: Dependencies from only one instance of a widget are used in display modes
A bug in core prevents multiple dependent facets from being registered as dependencies of entity displays. This only impacts you if a content entity uses this formatter for more than one field. See the beta2 release notes for more information.