I have a content type with an imagefield, that can have unlimited number of values (images).
I defined a view displaying the nodes, showing this imagefield too via Lightbox2. As the node can have several images attached, they're all displayed in the row of the node. I'd like to show only the first image, hiding the others. If I configure the image field in the view to show only one value, Lightbox2 can't detect that there are other images attached to the node, so there is no next button when Lightbox2 invoked.
How could I hide the other images in the row, but letting Lightbox2 have them?
See attachment.
Comment | File | Size | Author |
---|---|---|---|
#2 | lightbox2.png | 16.12 KB | tian |
lightbox2.png | 17.96 KB | tian |
Comments
Comment #1
tian CreditAttribution: tian commentedUsing Stella's idea I managed to create the theme code for what I wanted:
In my theme's template.php I put
and in style.css I put
which hides the items except the first one.
Comment #2
tian CreditAttribution: tian commentedForgot to attach the result, here it is: