This Drupal module provides two field formatter for displaying entity reference field.
Link entity belongs to formatter
Link entity belongs to formatter link the current entity to the entity it belongs to. for example, terms in the tags if you want to redirect to node instead of term page.
Link entity query parameter formatter
Link entity as query parameter formatter link the current entity to any specific page and as the query parameter of that field. You have setting page to set the page and query parameter name you need to. for example, category in faq node if you want to /faq view page with filter tid.
Event subscriber
Module provides an event so that others can develop an event subscriber to modify the url object.
Event Subscriber name :-
- link_to_entity.updateLinkBelong
- link_to_entity.updateLinkQueryParam
If you want to know how to develop an event subscriber you can read the following article.
https://www.sitepoint.com/drupal-8-hooks-symfony-event-dispatcher/
How it work
- Create entity reference field the content types.
- Choose the formatter you want to use.
- Start adding content with field.
- See how it works :-)
Project information
- Seeking new maintainer
The current maintainers are looking for new people to take ownership. - Module categories: Content Display, Site Structure
- 27 sites report using this module
- Created by takim on , updated
- Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.