We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29525
    • 388 Posts
    I’m struggling with a similar type of problem--multiple galleries on one page.

    I have created a MG slide show. This slide show is used on several pages on the site displaying the same set of images where ever it is called. Since putting a MG call on each page would create a separate gallery on each page, I’ve created a document just for this gallery (id 25) and I’ve pulled, into the sidebar of the various pages, the contents of that page (the gallery) using the includeDocument snippet. http://modxcms.com/forums/index.php?topic=26866.0. In order for this to work, I’ve included the &gal_query_ids=`all` parameter in the MG call. I tried using &gal_query_ids=`25` which is the document id containing the MG call but that just made the gallery disappear from the sidebar. (not sure why that doesn’t work)

    Home (1) with sidebar showing slideshow
    Sidebar Documents (folder)
    Sideshow (25) contains MG call

    So on the home page(1) the sideshow in doc 25 appears in the sidebar just fine. It also appears in the side bar on several other page and works just fine.

    [[MaxiGallery? &smoothgallery_id=`partners` &display=`embedded`  &embedtype=`smoothgallery`  &galleryPictureTpl=`terrysgallerypicturetpl` &max_pic_size=`150` &smoothgallery_width=`150` &smoothgallery_height=`150` &smoothgallery_timed=`true` &smoothgallery_fadeDuration=`1600` &smoothgallery_delay=`3900` &smoothgallery_showInfopane=`false` &smoothgallery_showCarousel=`false` &smoothgallery_showArrows=`false` &gal_query_ids=`all` &order_by=`random` ]]  
    </div>


    OK, all that works

    Now, I want to add a unique slide show the main content area of the home page.

    I created a new MG call with a unique id &smoothgallery_id=`photosone`

    [[MaxiGallery? &smoothgallery_id=`photosone` &display=`embedded`  &embedtype=`smoothgallery`  &galleryPictureTpl=`terrysgallerypicturetpl` &max_pic_size=`150` &smoothgallery_width=`150` &smoothgallery_height=`150` &smoothgallery_timed=`true` &smoothgallery_fadeDuration=`1600` &smoothgallery_delay=`3900` &smoothgallery_showInfopane=`false` &smoothgallery_showCarousel=`false` &smoothgallery_showArrows=`false`  &order_by=`random` ]]


    However, this displays the contents of the other gallery. When I look at the html, I see two galleries, each with their respective IDs showing the same content.

    I suspect it has something to do with the &gal_query_ids=`all` parameter in the sidebar gallery. However, when use &gal_query_ids=`25` it just disappears. I had thought that using unique gallery IDs would have allowed this to work correctly.

    I could use some insight on this.

    Thank you!
      www.terrybarthdesign.com
      • 7923
      • 4,213 Posts
      You have probably uploaded the pictures to the home document and not to the document id 25.

      Check /assets/galleries/ folder and see where the pictures are uploaded.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 29525
        • 388 Posts
        You are correct! Impressive!

        I will work on this in the morning and let you know how it turns out.

        Thank you!
          www.terrybarthdesign.com
          • 29525
          • 388 Posts
          OK, I deleted the images for all the galleries and started over and made great progress until IE. . . smiley

          After much tinkering, I changed my approach a bit. I’ve created four separate modx documents (49,53,54) each with a MG call that contains a unique gallery id.

          On the home page, I have included four MG calls that have unique IDs (left, center, right) and query parameters. Each call queries a different doc for images (49,53,54) Here’s an example of one them.

          [[MaxiGallery? &smoothgallery_id=`left` &display=`embedded`  &embedtype=`smoothgallery`  &galleryPictureTpl=`terrysgallerypicturetpl` &max_pic_size=`150` &smoothgallery_width=`150` &smoothgallery_height=`150` &smoothgallery_timed=`true` &smoothgallery_fadeDuration=`1600` &smoothgallery_delay=`3900` &smoothgallery_showInfopane=`false` &smoothgallery_showCarousel=`false` &smoothgallery_showArrows=`false` &gal_query_ids=`49` &order_by=`random` ]]  


          So everything works great in all browsers except IE. IE displays two of the galleries just fine. The other two appear to be loading images, (black with moving stripe).

          So after more tinkering I resolve the script conflicts and it seems to be working.

          Thanks for your help.
            www.terrybarthdesign.com
            • 7923
            • 4,213 Posts
            So just to be sure, it’s working now or not?


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

              Yes, it IS working now. Thanks for the follow-up!

              Terry
                www.terrybarthdesign.com
                • 18878
                • 210 Posts
                Quote from: Terry at Feb 02, 2010, 12:42 PM


                So everything works great in all browsers except IE. IE displays two of the galleries just fine. The other two appear to be loading images, (black with moving stripe).

                So after more tinkering I resolve the script conflicts and it seems to be working.

                Thanks for your help.

                Hi,

                So...how did you solve this IE problem? I’m facing the same issue.

                Thanks.