0

Basic setup: 3 content types

  • Festival
  • Event
  • Speaker

Event has a entity 1-to-1 reference field containing a Festival.

Event also has a 1-to-many reference field containing Speakers.

How can I set up a View to list all of the Speakers taking part in a Festival? (A Speaker can take part in more than one Event).

0

1 Answer 1

3

Create a view of events with relationship to the speakers and contextual filter to festival

enter image description here

For filtering duplicates you have to turn on aggregation as seen above and setup body aggregation settings: group column: format

enter image description here

The contexual settings for festival are

enter image description here

NOTE: To see preview for a festival put a festival node id in the contextual filter and press preview

Finally you can put the view block display on content region or any other region from structure > block layout and the block with relevant event/speakers will be present when you visit a festival page

1
  • Great! I was missing the aggregation. And also trying to show a rendered entity and not fields. Now I have the rendered entity as a field.
    – Tim
    Commented Mar 23, 2018 at 8:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.