Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

ID of image in gallery

Go to End



Community Member, 61 Posts

21 May 2010 at 4:14am

Edited: 21/05/2010 4:15am


I am using the image_gallery module in lightbox mode.

When you hover over the image, the image ID is set as its alt tag. However this is not relative to the gallery it is in, but relative to its position across all galleries. So, for example:

Gallery 1 - 5 images
Gallery 2 - 4 images
Gallery 3 - 6 images

The image in the 2nd position in gallery 3, has the ID of 12 - however, I would like to show the ID of 2

When you click on the image, activating the lightbox, it then shows Image 2 of 14, however, I think this is a function in the JS rather than in the image_gallery code.

Could someone let me know how I may be able to write a function to allow this?

Thanks in advance