Views: Contextual filters to hide content

Rating

Look to this content. It is a node concerning Claude Monet with a block wit all the other painters on the site. In the block, Claude Monet is not visible. If you do this with Picassa, Picasso would not show up in the block. You don't have to link to content you're viewing...

 

Drupal8_001506.png

How do you do that? You need a contextual filter. These filters are in the URL even if you don't see it.

I first make a view for the all the painters.

Drupal8_001505.png

Then i configure a contextual filter. I choose the ID.

Drupal8_001502.png

 


Drupal8_001503.png

Important. Below you see Exclude!!!


Drupal8_001504.png