1

For instance, say I have an Author node and multiple Books with entity-reference to that Author. How can I make a view showing each author with a list of their books?

0

To create a list of referencing content for each row in a view, use views_field_view to pull a secondary view into the row.

Add a secondary view with the fields to list and a contextual filter to receive the nid of the content being referenced from each primary view row.

Add a "Global: View" field to the primary view and use [!nid] for the contextual filter in View Settings to pass each row's nid to the secondary view.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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