Exclude current node from entity reference view (for related news) In Drupal 7 I have a news content type with a simple related news selection list. This works like a charm, I use an entity reference view to fill the list and new news-items are created just like they should be. But once the news-item is published it will of course be shown in the list. If you select it, the standard behaviour will be to render its full content view, resulting in a recursive content error.

How can I create an entity reference view that excludes the current node? I have found a lot of related issues, but nobody seems to answer the question of using parameters at all in this special kind of view. I tried to add an argument to the filter using the token syntax which says "AND Nid not equals [node:id]" but that turns out to be ignored. I also found that when you include the view it is possible to send parameters to it, but I was unable to find documentation for how to use them.

Does anybody have more information/documentation about this?
there is a patch fixing that issue and helping you to use [node:nid] as an arg here.



Otherwise, did you try Entity Reference View Widget ? 


  The module has a way of hiding selected items from the View. Simply
  add a base field contextual argument (Product ID for products, Node ID
  for nodes, etc) and in the "More" fieldset enable "Allow multiple
  values" and "Exclude". Then edit the Entity Reference field, and in
  the widget settings enable "Pass selected entity ids to View ".