View inside a node with content from a relationship I have two content types: Artist and Artwork.
An Artwork has a field called field_artist which relates to the relevant Artist node.
I want to add a view to the Artist node page, so that all artworks of that artist are displayed.
I tried using EVA, but I can't figure out what relationship and contextual filters to choose. I looked for tutorials but I find this very confusing.
Is there a way to do this with EVA OR in some other easy way? The only crucial thing is that the entity reference field from Artwork to Artist must be used to filter the artworks in the view.
Thanks!
You can build it in Views without EVA.
Here's a great article about different cases of how to build Relational lists in Views (I'm not affiliated): Relationships and Contextual Filters in Views 3 for Drupal
In your particular case you need to look at the 'Pulling fields of “Child” nodes by node reference' section.
You build a list of Artwork, then add the Contextual filter for the Artist ER field, configure it to default to &quot;Content ID from URL&quot;, add the Validation that limits it only to the Artist type so it appears only on Artist nodes, adjust the other settings to your particular needs.