I created a block view listing nodes of the content type: cars.
I added the block to the second sidebar.
After, I created 2 nodes of this type with the titles: car-1 and car-2.
Then the view block shows these 2 nodes. So far so good.
If I visit the page example.com/car-1 I see the block listing both the car 1 and car 2 nodes. I want to exclude the car-1 node from the block since I'm at: example.com/car1
This is what I did in the view:
1. Click on add under "contextual filters". 2. Choose Content:nid. 3. Under "when the filter variable is not available, choose "provide default value". 4. From the drop down menu select "content id from url". 5. Scroll all the way down to the bottom of the window and click on the 6. "More" link. 7. Click "Exclude"
I works fines if I visit a node, but the block is not shown in any Views (i.e.: in the frontpage view )
I know that the reason is that the Content nid is not present in a view, but don't know how to workaround this.