This is supposed to exclude the current node from a view.

Argument - Node: Nid
Provide default argument (Checked)
Default argument type: Node ID from URL
Exclude the argument (Checked)

BUT, it only appears to exclude nodes that are also menu items.

My 'News' items are not attributed to any menu, thus i get double ups in my view.

any ideas?

thanks!

Comments

merlinofchaos’s picture

There is nothing in the Node ID from URL code that would tie the node retrieved to a menu item. It's possible this might happen if you are viewing the node via a non-standard path, (not counting aliases) I suppose.

milos1234’s picture

hi there, yes i also have pathauto aliases setup. (and node heirarchy for that matter).

if thats causing the problem, is there another way to exclude the current node?

many thanks

dawehner’s picture

Could you try to export your view? http://drupal.org/node/571990

You could everytime try to use theming of hook_views_pre_view, and alter the $view->result array.

esmerel’s picture

Status: Active » Closed (fixed)

suggestion given, request for more info. No response.