2023-01-26

How to filter a view by content that references the current node in modern Drupal

2023 January 26, Thursday, at 1:35pm

Keegan Rankin

How to filter a view by content that references the current node in modern Drupal, References and contextual filters, A spiderweb covered in dew drops., berry

It is often enough throughout the journey of building websites that you will desire to create very specific lists of content. In my current endeavor,

Steps

1, Add a relationship to content referenced by your entity reference field

Go ahead and click the Add button next to Relati

In my case I am looking for Content referenced from field_office_location. This is the entity reference field on my Event content type,

Select ID and click Add and configure contextual filters.

The red boxes above indicate what needs to be done. Be sure to select the relationship you added to the Relationship field. This will allow

Read more

Show more