Hi everyone,

I have a node of type "page" called "Main" that I am using as my main content page where I have content listed in a table view. Only thing is the page "Main" also shows up in the content.

Is there a way to exclude just this one node from being displayed in the list of content?

Comments

jix_’s picture

There sure is! Have a look at the arguments section while editing your view. Add a Node: ID argument, select the not equal option and enter the ID of the node you wish to exclude.

jmunning’s picture

Thanks for the help but I still don't totally understand. Where do I enter the ID of the node to exclude? When I add the Node: ID argument I have these fields:

Default Title Option Wildcard Wildcard Sub Ops

Thanks.

jix_’s picture

Default: display all values
Title: (empty)
Option: not equal
Wildcard: (node id)

I think that’s how it works. I’m used to views 2 though and haven’t done much with views 1, so I can’t guarantee.

jmunning’s picture

What ended up working for me was to add the Node:ID argument. Set the option to "not equal" and then add the following in the argument code

$args[1] = 2601;
return $args;

In this example, 2601 was the nid of the node I wished to exlude from the view.