We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15001
    • 697 Posts
    Hi,

    One page of my site makes the MaxiGallery call below, which displays a single thumbnail.
    It works perfectly, but a small margin or padding is added below the thumbnail, that I want to remove.
    [[MaxiGallery? &view_gallery=`[+cart.item_number+]` &display=`normal` &limit=`1`  &galleryPictureTpl=`@FILE:{{ecommerce1_root}}/assets/snippets/maxigallery/templates/thumbnail.tpl` &manageOuterTpl=`CODE:` &manageButtonTpl=`CODE:` ]] 

    As the vertical gap is caused by the outer template, I tried adding this parameter:
    &galleryOuterTpl=`@CODE:<ul class="thumbs"><li>[+maxigallery.pictures+]</li></ul>`

    but nothing is outputed.

    I’m doing something wrong with &galleryOuterTpl, but what?

    Thanks for your help.
      • 7923
      • 4,213 Posts
      The [+maxigallery.pictures+] placeholder probably get processed and not passed as string. The @CODE: is mostly designed to be used when calling MaxiGallery trough runSnippet() MODx api.

      Just create the template as a file and use @FILE: or create a chunk for it.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 15001
        • 697 Posts
        You’re right.
        Using @FILE solved the problem.

        Thank you VERY VERY MUCH for your continuous support of MaxiGallery.