0

I'm confused with views filters and relations...

In my articles I have a field (field_article_reference_nodes) that references other nodes and shows these as a link. Now I want to attach a view to other nodes that lists all articles referencing them.

So this is kind of a cross reference. How do I have to set the filters/relations for this view to list all articles that are referencing the current node?

Thanks for your support! Mathias

2
  • That's called reverse entity reference and you want to get the referencing entities. Maybe have a look at drupal.org/project/reverse_entity_reference – leymannx Feb 8 at 17:49
  • Thanks @leymannx, sounds perfect but doesn't support Drupal 9.x yet. Is there a custom way to do this? – mcm Feb 8 at 18:03
2

After knowing that this approach is called "reverse entity reference". I found this tutorial: https://mushtaq.ch/blog/4/drupal-8-reverse-entity-reference-in-view

But in step 3 I needed to use "Content USING field_myfield" instead of "Content referenced from field_myfield".

Thanks for your help!

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.