Introducing the Display Suite Chained Fields module for Drupal 8
Share:
Need a way to mix fields from referenced entities with regular fields from managed display?
Then the Display Suite Chained Fields module might be for you.
by
Lee Rowlands
/ 22 November 2017
So how do you go about using the module?
Step 1: Enable a display suite layout for the view mode
To use the chained fields functionality, you must enable a display suite layout for the view mode. Select a layout other than none and hit Save.
Enabling a layoutStep 2: Enable the entity reference fields you wish to chain
To keep the manage display list from being cluttered, you must manually enable the entity reference fields you wish to show chained fields from. For example, to show the author's picture, you might enable the 'Authored by' entity reference field, which points to the author. After you've enabled the required fields, press Save.
Enabling fields for chainingStep 3: Configure the chained fields as required
Finally, just configure the chained fields as normal.
Configuring chained fields
That's it - let me know your thoughts in the comments or the the issue queue.
Tagged
Posted by
Lee Rowlands
Senior Drupal Developer
Dated 22 November 2017
Add new comment