I`m using
Views + CCK + Image field +Image cache + Lightbox2

I need LightBox showing the original images of the node when you use the "Next" and "Previous" links. Actually it jumps to the first image of other nodes. Which I understand is that it groups the images in a way I don't want, actually LightBox is grouping them by "field", and I tried to group them by "node id" and "group field and node id", but then just one image appear with no "Next" and "Previous" buttons.

Now the LightBox slide works like this: Node1 Image1 -> Node2 Image1 -> Node3 Image1 -> ...
I need this: NodeX Image1 -> NodeX Image2 -> NodeX Image 3 -> ...

any suggestions?


wyocrook’s picture

I posted this in forum, I think I am having a similar issue. It seems you understand it better than I:

"Its really two questions.

Here is a link to the page in question:

As you can see there are two columns of images. Clicking on an image will open it in lightbox.

This page is a path created from views. It consists of two nodes(each column is a node) I uploaded three images per node.

I want to do two things. First of all, for each node of three images, I only want to display one thumbnail. I want to hide the other two associated with each node, and only have them display in lightbox with the next and prev buttons.

You will notice that on any image opened in lightbox the image registers as "1 of 6" or "2 of 6" and so on. The second thing I want to do is isolate the lightbox slide show to only show images of one node. So for this, if I clicked on the left column, only left column images would appear with a "1 of 3," and the same with the right column.

My goal is to create a gallery with many images, where each image is a node but only one image displays. So far in the Views module, I have not figured out a way to separate the nodes so that lightbox doesn't stream all the photos into the same slide show. I know that lightbox has a rel="xyz" feature to it, but I am not sure how to impliment that as it would seam that I would need a header to put the script in, and the node html box does not allow that.

What is the best way to go about this? I would be very grateful for any ideas. I have been stuck on this problem for several weeks."

I want to separate the albums with views, but the only way I understand to separate node albums is to add javascript code somewhere in the module files, and I am reluctant to open that can of worms.

Post if you find a solution. I will likewise do so if I find one.

wmad’s picture

See http://stackoverflow.com/questions/2805013/drupal-use-lightbox-with-view...

As of today, the lightbox trigger has not been committed to the drupal7 version of lightbox2. You need to apply the patch in http://drupal.org/node/1271456#comment-5286454

wmad’s picture

Actually, for dupal 7 at least, all you need to do is update the lightbox2 "group display settings" at /admin/config/user-interface/lightbox2 and select "group by nid".