Image 6.x-1.0-alpha4
Lightbox2 6.x-1.9

Hi,

I've posted this over at the Image module section, thinking maybe I should post it here as well.

I'm having trouble to enable the "Prev" and "Next" arrows in Lightbox2 combined with the Image module, is this normal? I noticed each image uploaded with the Image module is an individual node, even though I had put them in the same gallery.

If this is normal, then is there a way to make Lightbox2 to see each image node within the same gallery so that the arrows will appear?

Or maybe this is only a problem with a certain themes?

Thanks in advance.

Comments

stella’s picture

Priority: Critical » Normal
Status: Active » Fixed

It is normal for each image created using the Image module to be its own node.

You can configure Lightbox2, that when viewing the gallery page, you can click on an image and navigate, forward and back, through the set of gallery images present on the current page. You can configure this at admin/settings/lightbox2/automatic - see the 'image node handler'.

valel46’s picture

Hi stella,

Wow this is great, everything is working like I wanted now, thanks a lot for the great module.

I've another question, by any chance you will add a description field to LB2 in the future? I mean when the image pops up, it can show a short description below the title.

stella’s picture

See http://drupal.org/node/252260 in particular the section on opening nodes in a lightbox. This way you can use the body field to store the description and can use the theme template files to theme the layout of the node within the lightbox.

valel46’s picture

Thanks again, stella.

I took a quick look at that page, I think it's a little hard to understand for my current php knowledge at the moment. :/

stella’s picture

On admin/settings/lightbox2/automatic, change the image handler to 'HTML content grouped'. Then in your theme you can customise the page that appears by creating a page-node-lightbox2.tpl.php file in your theme's directory and go about removing sidebars, etc. In a node-lightbox2.tpl.php you can configure the node to show just the image and caption, and none of the other fields if you so wish.

Cheers,
Stella

valel46’s picture

Hi Stella,

Thanks again for taking your time to explain. I will try it maybe this or next weekend.

Cheers!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.