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

    I have unusual requirement how to show images from MaxiGallery document.

    So I describe now, what is the document structure.

    I have document with id 1 where are 3 images and some text around the images and any MaxiGallery call in this document.

    Then I have MaxiGallery document with id 2, where is standard MaxiGallery call and many images:
    [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &max_thumb_size=`120` &max_pic_size=`800` &upload_field_count=`10` &use_ftp_commands=`1` &ftp_server=`example.com` &ftp_port=`21` &ftp_user=`login` &ftp_pass=`password` &pics_per_page=`30` &disable_js_libs=`1` &thumb_use_dropshadow=`1`!]



    And now, my client want behavior like this:
    When he click on any image in the document 1 (in this document are only 3 images), so the slimbox window will be opened and he want look through all images which are in the MaxiGallery, which is in the document with id 2

    It’s this somehow possible ?

    Thank you for any suggestions and advices.
      • 7923
      • 4,213 Posts
      Yes, you can use this guide: http://wiki.modxcms.com/index.php/MaxiGallery#One_thumbnail_in_page.2C_but_all_pics_in_Slimbox.2FLightbox_v2_picture_set

      Modify also the outerTpl of maxigallery to hide the picture management buttons to avoid problems. With that above guide, the thumbnail that comes to the page is the first thumbnail from the gallery according to the position field. If that’s not wanted, you can also just make maxigallery to list the html links to the source (skip the first two steps from guide and do just from step 3 onwards) and put a static link to some specific image from the gallery to the souce of the document manually.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 27843
        • 170 Posts
        Thank you doze, I have skipped first 2 steps and have created static links and i have added &gal_query_ids=`xx` to the MaxiGallery call and it works great.

        Thank you