Andrew Fletcher published: 31 March 2022 1 minute read
How do you exclude the current node from a list view?
In some situations, for example a block listing nodes related to the node being viewed, you might wish to exclude the current node from a list view.
Steps:
- Click on the advanced tab;
- Click on add under contextual filters;
- Choose Content datasource: ID;
- Under "when the filter variable is not available, choose provide default value;
- From the drop down menu select content id from url;
- Scroll down to the bottom of the window and click on the More link;
- Click Exclude
Finally click Save and cross check your work at the front end.