We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8975
    • 51 Posts
    Hello, I’m not a very expert of modx, but I used it for 6 sites already, and I like it very much.
    But I’m a designer and not really a programmer, even if I’m learning some, I don’t have the time to become a real programmer.

    So I get confused when I have to put code togheter, and I’m very confused by placeholders and "snippets", and couldn’t get the hold of Ditto since I find very confusing the few tutorials out there :|

    Now to my problem...
    I have made a "photo gallery" with Maxigallery. I created a root level page with a call at child documents, and sublevels with the galleries. I had no problems in styling the galleries and using the maxigallery inside the template..but...
    In the main gallery, I want the following to happen:
    • show 4 photos for each child gallery instead of 1
    • have each child gallery on a different row
    • have a space for a text under every gallery, or still better recall the [*content*] of the child galleries under every one.

    The website i’m working on is: http://www.ilgiornochevorrei.it

    The "main gallery" is: http://www.ilgiornochevorrei.it/matrimonio-photogallery.html

    Hope someone can help me with this one, and remember that I’m a newbie at modx undecided
      Graphic designer, Web designer, Illustrator and Boardgames designer (and illustrator)
      See my illustrations here: http://erebus74.deviantart.com/gallery/
      • 7923
      • 4,213 Posts
      The childgallery display type of MaxiGallery is designed to only show one thumbnail for each childgallery.

      So what you need to do is to list the documents with Ditto in the main page. Eg. just a normal list of one level deep. Then create a custom row template for ditto to style it’s listing and add the following maxigallery call to the ditto template:

      [!MaxiGallery? &gal_query_id=`[+id+]` &limit=`4`!]

      That will run MaxiGallery for each of the child documents when Ditto is processing them and fetch 4 images from each. You can add different parameters to the maxigallery call just like in any other call.

      If you want that the maxigallery thumbnails link to the actual gallery document, you need to do a custom galleryPictureTpl template to maxigallery too. You should copy the original one and then replace the link url for the thumbnail images to be [~[+maxigallery.picture.gal_id+]~]


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 8975
        • 51 Posts
        Thanks for your answer, it’s very clear smiley

        I’m learning ditto calls and templating in the meantime, since I see I cannot exploit full modx power without understanding them. embarrassed
          Graphic designer, Web designer, Illustrator and Boardgames designer (and illustrator)
          See my illustrations here: http://erebus74.deviantart.com/gallery/