Open ob7 opened 9 years ago
@ob7 - I don't know if you figured this out by now, but I ran into the same issue with my slideshow as well. As soon as I read your issue I realized what was happening:
The li in your code is the actual slide, not the image elements. so just apply something like data-cycle-title="Title 1" to each li, and then update your template to use data-cycle-caption-template="{{cycleTitle}}".
@HunterJoe thanks for posting that - it was driving me nutz.
Hello, I get my captions to work fine within a div. The problem is, I have to keep my images in an unordered list, and cycle-sideshow classes are applied to the ul. I am using the alt caption feature. But my div for the caption just says "alt" instead of actually displaying the data in the alt tag of the image. Heres my code:
If I take out the li tags and remove data-cycle-slides="li" the tags will work. The problem is, I need the li tags in my code because that is how the cms I am plugging in for the customer will allow them to add or delete pictures from the cms (cushycms repeatable elements).
I need to keep the li elements for this to work the way I need. How can I alter the plugin code or do whatever it takes to get captions to work with li elements?