We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9920
    • 17 Posts
    On my site I have multiple galleries, so the pictures are in different gallery-folders but sometimes have the SAME file name (001.jpg)

    The thumbnails are always displayed correctly, but if I want to look at the big picture with slimbox, then slimbox shows me the wrong picture (same name, but different folder).

    How can I correct this whithout renaming the pictures?
      • 7923
      • 4,213 Posts
      Hmm.. so you must have multiple pictures visible on the same page that are drawn from other galleries and some of the pictures share same filenames? right? I guess that’s a bug/limitation in slimbox.. you could put the pictures in their own slimbox picture sets, so that pictures from each gallery are opened in their own slimbox picture set, but I don’t know if it would suit in your case for your site... anyways, that can be done by replacing rel="lightbox[maxigallery]" in the galleryPictureTpl template with rel="lightbox[maxigallery[+maxigallery.picture.gal_id+]]"..


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 9920
        • 17 Posts
        No, the files are in different picturesets. The thumbnails are listed correctly, but when I browse the pictures with slimbox, I get the pictures of another folder (only the ones, which have the same filename).
          • 7923
          • 4,213 Posts
          Is the page online and can I have the url? or could you post the HTML source of the page...


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 9920
            • 17 Posts
            Yes it is online:

            http://www.despina.ch/index.php?id=47

            When you browse the pictures of the "Automn-Törn 2007" with slimbox, then only the first picture is correct, the second picture then is linked to the first picture "Spring-Törn 2007". They have both the name "001.jpg" but as you can see they are located in differten folders an the picture 001.jpg also exists in the "63" folder, but slimbox doesn’t show the right one.
              • 7923
              • 4,213 Posts
              Hmm.. I think that the pictures are somehow messed up.. eg. the thumbnails do not point to the same image.. the thumbnail of the second picture (http://www.despina.ch/assets/galleries/63/tn_001.jpg) actually points to the one that is show in slimbox, eg. http://www.despina.ch/assets/galleries/63/001.jpg and they both come from the same gallery (with doc id 63).. so there’s something funny going on with the thumbnails..


                "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                • 9920
                • 17 Posts
                Oh, I see. I’ll try to re-upload the pictures and give it another try. I’ll give you feedback here.