We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27330
    • 884 Posts
    I made maxigallery with highslide and the "One thumbnail in page, but all pics in Slimbox/Lightbox v2 picture set"
    example from the wiki.
    For some reason when the lightbox opens it let me navigate as if I had 2 images even though there is only one image in the gallery.
    If I put for example 5 images than it lets me navigate 6 pictures, it repeats the first image twice.

    If I take out the second maxigallery call from the page it doesn’t happen.


      • 3749
      • 24,544 Posts
      Have you tried messing with the caching of the MG calls?
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 27330
        • 884 Posts
        I usually call maxi uncached in cashed document.

        After your post I tried the other options but they didn’t changed it.

        I would think it has something to do with highslide itself, but this also happen to me when I had the images in a milkbox, so i assume it’s somewhere with maxigallery. especially when I remove the second call the problem disappear.

        here are my 2 calls:

        <!-- calling the gallery with only single image visible -->
        [[MaxiGallery? &max_thumb_size=`120` &max_pic_size=`0` &keep_bigimg=`1` &thumb_use_dropshadow=`0` &limit=`1` &max_pic_size=`1024x768` &galleryPictureTpl=`gallery_pic_tpl_HS` &disable_js_libs=`1` &galleryOuterTpl=`gal_milk_outer`]] 
        
        <!-- calling all images -->
        [[MaxiGallery? &max_thumb_size=`120` &max_pic_size=`0` &keep_bigimg=`1` &thumb_use_dropshadow=`0` &order_by=`pos` &limit=`99999`&max_pic_size=`1024x768` &galleryPictureTpl=`gallery_pic_tpl_hidden_HS` &manageOuterTpl=`CODE:` &manageButtonTpl=`CODE:` &disable_js_libs=`1` &galleryOuterTpl=`gal_outer_hidden`]] 
        
        


        edit:
        and a demo linky:
        http://www.smartsecuritycamera.com/maxi-highslide-test.html
          • 7923
          • 4,213 Posts
          You have the first picture twice in the html source of the document. That’s why it’s shown twice.

          Use &offset=`1` in the second snippet call to skip the first image as it’s already shown with the first snippet call.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 27330
            • 884 Posts
            OK. that indeed fixed it. thanks a million.

            I don’t remember having the need to add the &offset for slimbox when I had this made step by step as in the wiki example.
            was that already hard codded with slimbox config?
              • 7923
              • 4,213 Posts
              I think that slimbox get’s only unique urls to the picture set.. So it doesn’t show pictures twice even though they are multiple times in the source.


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