We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3722
    • 171 Posts
    Here is my website: http://www.vectortechgraphics.com/

    I have it setup how I want it except for when you click on an image and open slimbox.
    I have the page showing 3 random images. I have 4-7 pictures in each gallery.
    You can see that by refreshing the page (F5).

    Why does slimbox only show the three random images?
    How do I get it to show all?
    I tried the examples in the wiki with no luck.

    Here is my code:
    Portfoliio page
    [!MaxiGallery? &view_gallery=`20` &order_by=`random` &limit=`3` &embedtype=`slimbox` &pics_per_row=`3` &max_pic_number=`0`!]

    Each gallery page
    [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`110` &max_pic_size=`400` &thumb_use_dropshadow=`1` &is_target=`1`!]

    Thanks
    BG66
      • 7923
      • 4,213 Posts
      In your portfolio page, you would need to add another snippet call to each section with a custom template what outputs links to all of the pictures from the galleries. E.g. what is done in this tutorial.

      But the problem is, that you should not have same picture output twice on the html, because then slimbox will also show the picture two times. Usually this can be avoided by simply adding offset to the second call to tell it that it should skip the first certain amount of pictures. But this is not possible for you as you are displaying random pictures, so you don’t know what to skip.

      So... actually, what you should do is to remove the &limit=`3` parameter from the call(s) in your portfolio page and create a custom template galleryPictureTpl where you use [+maxigallery.picpagenumber+] parameter in a PHx conditional to check if it’s over 3, and if it is, just output a hidden link to the image.. for the first 3 pictures, output the normal thumbnail code.


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