I'm trying to set up multiple Lightbox Galleries.
That's my Page/Dataobject construct: Page -> GalleryObject -> ImageObject
That's my Markup:
<% loop Galleries %> <% loop Images %> <a href="$Image.Url" data-lightbox="$Top.Title">$Image.CroppedImage(46,46)</a> <% end_loop %> <% end_loop %>
The Problem is that each gallery needs an unique title that's specified in the html markup, so that the Lightbox script knows which images belong together.
I tried to use the $Title Value stored in each GalleryObject. But I can't break the ImageObject Loop, so $Top.Title and $Up.Title doesn't server anything :/
Can someone help me to solve this problem?
Thx in advance