We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22513
    • 3 Posts
    Hy ModX fans, i need your help huh huh
    Sorry my bad english but I trie explain my problem:

    In my gallery I need 10 displayed thumbnails with "next 10" and "prew 10" buttons. But all 10 thumbnails must be in 10 different div’s, so 10 different styles
    The default template looks like this (gallerypicturetpl.html):
    <li> image1</li>
    <li>image2</li>
    ...

    So all elements has a same style. I need the following:
    <div id="DIV1">image1</div>
    ...
    <div id="DIV10">image10</div>
    


    Is there any way to do this?
    Big thanks guys!
      • 7923
      • 4,213 Posts
      Can’t you put id to the li tags? if not, then simply wrap everything in the li tag to your own div.

      As the ID you could use for example the picture number for the page, eg id="picture[+maxigallery.picpagenumber+]" in galleryPictureTpl.

      That would make you id’s picture1, picture2, picture3... etc.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."