The Related data custom field gives you the possibility to relate one content item to another. Then, you can make related items to be displayed as a link on the frontend.
EXAMPLE: You have a dynamic module Authors. The module will store information about different authors. Create a page where you drop the Authors widget. Open the News module and created a custom field of type Related data and Data type Authors. In the backend, when you create a news item, you see the custom field added. There you can choose an author that will be related to the news item. Then, you add the Authors field to the widget template of the News widget. When you open the site and click a news item, you will see the details of the news item and the link to the author’s details.
To add a Related data custom field, perform the following:
You can also use the built-in widget of the content type for which you are creating the custom data field.
For example, if you are a custom field for the News module that is data type Authors, you can use the News widget to display the authors.
NOTE: When you delete an item that has related data custom field added to it, you can choose to display a warning message. This way, you can avoid breaking links from other content items or pages.
To do this, perform the following:
Back To Top