Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » ID of image in gallery

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1007 Views
  • sca123
    Community Member
    61 Posts

    ID of image in gallery Link to this post


    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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.