i'm trying to display a set of nodes of the same node-type on a page of the same node-type. My goal is to create a list which doesn't include the current active node (since you are on that page already)

do i use arguments for that then? What is the solution for this?

thx in advance
mm

Comments

mediamash’s picture

practical example:

let's say we have a content-type A, with nodes A1, A2, A3, A4 & A5 in it
then on de node-page A1, i want to display all other nodes from content-type A (excluding A1, since that info is already on that page)

mediamash’s picture

found this

Assuming you are using Views module, add a "Node:ID" argument type to your view. In the Option dropdown, select "Not Equal". Then place the following in the Argument Handling Code:

if ( ($type=='block') && is_numeric(arg(1)) ){
$args[0] = arg(1);
}
return $args;

but when i use the filter: node:distinct it still shows double nodes?