Posted by firestickme on November 29, 2012 at 3:52am
I'm using Panels module to create a node template. These nodes have multiple images in their image field. When viewing the node a slideshow should display the images.
So I created a Views Slideshow and can put this in the node template easily, but I can't figure out how to set contextual filter and arguments right so that only the images from that node are displayed. Without the filter images from other nodes are displayed in the view, with the filter no images (not even from the node being viewed) are displayed.
I've looked at lots of contextual filter tutorials but can't figure out how to apply them for this specific use. Can someone help please?
Comments
Assuming you've created a
Assuming you've created a view of nodes rather than a view of files. You want to add a contextual filter for node nid, and provide a default value that is the node id of the node being viewed. Add your image field and make sure group multiple values is not checked. This gives you a separate row for each image.
It's possible with a file view, but I think the node view is easier.
http://www.trailheadinteractive.com
Thank YOu!!! Adding the
Thank YOu!!! Adding the default value of node id got the contextual filter working! i wuld've sworn i already tried that... but it works now :)