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

    I am trying to run two galleries on the same page. I have pretty much tried everything but with no luck.
    If i add two instances of the following call on the same page:
    [!MaxiGallery? &display=`embedded` &embedtype=`slimbox` &pics_per_row=`3` &disable_rightclick=’0’ &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1`!] - it adds the same gallery twice. I can however run this call on different pages and each one becomes a new gallery

    I have even tried to add the following: &gal_query_ids=`200` - also with no luck

    Please help!!!
    Garth
      • 26016
      • 561 Posts
      It’s doing exactly what you’re telling it to, so to speak. Your call will make a gallery on the doc that’s calling it. So if the call is the same, you get the same thing.

      Generally to get several galleries per page, you can set up a child galleries call:
      [!MaxiGallery? &display=`childgalleries`!]

      and then you simply have 2 docs under that, each with its own Maxi call. You enter photos into each gallery child page separately, then the childgalleries page pulls them both in.

      But maybe you don’t want that, because you’d rather have all the thumbnails on your one page. You could try using this parameter on one of the calls:
      &childgalleries_ids=`someDocNumberHere`


      You’d set up another doc with a Maxi call, and the number of that doc becomes the number you’d use in the call above. That may work for you.

      Cheers
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 10489
        • 93 Posts
        Thanks samba,

        I sort of understand what you’re saying. Could you check out this link for me please:
        http://www.aegirperformanceyachts.co.za

        1. Navigate to ’BRANDS’
        2. Navigate to ’FERRETTI’ logo at the bottom of the page
        3. Click on ’FERRETTI 470’

        On the page is a gallery and text to the right of the main pic. I am attempting to add a second gallery just below the text that shows yacht schematics. Will child galleries work?

        Also what is the easiest way to implement this.

        Thanks again
          • 26016
          • 561 Posts
          Greets...
          First, site looks pretty nice! My relative does meteorology for yacht racing, it reminded of that.

          Hmmm, hard to see from the outside, as always.
          I’m at this page, which I assume is the right one.
          http://www.aegirperformanceyachts.co.za/index.php?id=97

          You must have a nice Maxi call there. Here’s a recipe that might work to stick another gallery under the main one. btw, those photos are a little small. smiley

          Make a doc underneath this doc (specify Resource Parent). Stick the same Maxi code in it as on the above page, and put some photos in. Make note of the document number (Important!)

          Go back to the above page. Copy the original Maxi call, and stick it underneath the first one.

          To the 2nd call, add the parm I showed in the previous post. Replace "somedoc..." with the doc number that you remember, and save.

          Now you should see photos from the "remembered" doc.

          At this point, it’s up to you, amigo!
          Good luck, Dave
            MODx and Wordpress development
            Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
            • 7923
            • 4,213 Posts
            Each maxigallery has to have it’s own document. So first create all the galleries in their own documents, then to show multiple galleries in some document use:

            [!MaxiGallery? view_gallery=`doc_id_here`!]

            You should also use &manage_target and &is_target parameters if you want to do picture management from the document that shows multiple galleries.


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 10489
              • 93 Posts
              Thanks Doze and Dave,

              All working great now.

              Garth