I have two content types:


  • body
  • field_events (Entity reference)


  • body
  • field_company (Entity reference)

I have created a view that has this setup:

View Settings:


  • (field_events: Content) Content: Title

Filter Criteria:

  • Content: Published (= Yes)
  • Content: Content type (= Company)

Contextual Filters:

  • (field_events: Content) Content: ID


  • field_events: Content

enter image description here

I have followed the instructions from: Related block by entity reference

My goal is to display similar events from the same company but excluding the current event shown in the page.

What step am I missing?


1 Answer 1


Follow the steps and let me know if you face the same issue

  1. Click on the "advanced" tab.
  2. Click on add under "contextual filters".
  3. Choose Content:nid.
  4. Under "when the filter variable is not available, choose "provide default value".
  5. From the drop down menu select "content id from url".
  6. Scroll all the way down to the bottom of the window and click on the "More" link.
  7. Click "Exclude"

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.