Jump to:

10842 Posts in 2513 Topics by 1792 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: 967 Views
  • sca123
    Avatar
    Community Member
    61 Posts

    ID of image in gallery Link to this post

    Hi

    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

    967 Views
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.