We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2199
    • 6 Posts
    I want to make a gallery (i.e. Portfolio) gathering photos from 3 other galleries (i.e. Paintings, Drawings, Photos).

    I already know how to do this, but the problem is, I want to make links in Portfolio to picture number X, Y and Z, where X is the first Painting, Y the first Drawing and Z the first Photo.

    Of course, for that to work I need images sorted by their original gallery (so Paintings first, then Drawings, and then Photos).

    So the basic question is, how do I get the number of images from other galleries.

    Thanks in advance for all your help!
      • 7923
      • 4,213 Posts
      Childgallery display type does that by default, ie. lists all the galleries under certain parent and displays the first image from them. With the &order_by parameter you can sort the images of the galleries and with &childgalleries_order_by you can sort the childgalleries itself.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 2199
        • 6 Posts
        Thanks doze! Especially for the sorting tips - I didn’t know I can manipulate sorting both the images within a childgallery and the childgalleries them selves.

        As for the importing childgalleries, I got to that point, but the problem starts here. Along standard ’next’ and ’prev’ buttons I want to have "jump to the first picture from gallery Paintings" button (I’d have to work on the label, though wink).

        As far as I understand it, all I need is to somehow get the image count from each child gallery. From there I’d now what to do with it with JS, but I don’t know how to get them.
          • 7923
          • 4,213 Posts
          If you use childgallery view, it should only list one thumbnail from the gallery and when you click that, it should go to the gallery. Post your snippet setup and document tree info if you want better help.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 2199
            • 6 Posts
            Thanks again!

            I don’t want to have 3 thumbs leading to childgalleries.

            What I want to achieve is to have a single gallery which has:
            - images from all childgalleries
            - buttons ’next’ and ’prev’
            - buttons ’go to first image that’s taken from childgallery X"

            Basically what I need from MaxiGallery is:
            - number of images in each childgallery
            - list of links to thumbnails, normal and big images from all childgalleries
            - all those links have to be listed in order, ie. images from 1st childgallery, then from 2nd, then from 3rd, and so on

            I can take it from there with JavaScript.

            If there is no other way, I’ll have to alter the way childgalleries are display to put all info in xml. Then I’ll make a page with JS getting all that info and displaying a gallery. I was hoping, though, I could use some builtin MAxiGallery way of displaying it.
              • 7923
              • 4,213 Posts
              Maybe better to just create custom templates to maxigallery so that it outputs the xml you need and process that.


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