I've setup a panels page displaying a View context which displays a single random node, e.g. 'Featured item'
On the same page I have another pane displaying a View that lists all of the nodes, e.g. 'All items'

I would like to be able to pass the node ID from the 'Featured item' to the 'All items' so it can be used in a exclusion filter so that the featured item doesn't appear in the 'All items' list, basically I don't want it duplicated.

I setup my panel, added the Views context and created a 'Node from view' relationship using the View as the context. This gives me access to the %node:nid token. However, when I display the nid, it's not the ID of the 'Featured item' node, it's seemingly random and almost as if panels is calling the View twice and generating the random nid twice.

Can anyone shed any light on this or offer a solution? thanks.

Comments

merlinofchaos’s picture

My guess is that you are, in fact, executing the view a second time, rather than just displaying the node from the view.

I can't really guess more without seeing the panel and views in the setup.