We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3633
    • 84 Posts
    Okay I posted this thread in another forum on modxcms.com, and asked for that thread to be moved to this forum, but nothing has been done about it, so I have created this thread here. I am hoping for an answer pretty soon.

    Anyway here is my query: I am just wondering if it is possible for a website user to click on the gallery group (for example: Deb’s photos), then to go to that group of photos, instead of clicking on each photo at the start of the gallery?
      • 7923
      • 4,213 Posts
      What’s your snippet call?

      And yes, it’s possible. Just create a custom template where you make the link from the image to be:

      <a href="[~[+maxigallery.picture.gal_id+]~]".....


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 3633
        • 84 Posts
        Thank you for your reply, doze. Before I use the code I would like to know if, that code work with all grouped galleries? I mean does my client have to place that code into the main template, every time they want to create a new grouped gallery?

        My snippet call is:
        [!MaxiGallery? &childgalleries_ids=`all` &display=`childgalleries` &order_by=`random` &childgalleries_order_by=`createdon`!]
          • 7923
          • 4,213 Posts
          Like I said, you need to create a custom template to your snippet call.

          If you are displaying childgalleries, you want to create a custom childgalleryTpl.

          Probably with something like this in your custom template:

          <li>
          	<a href="[~[+maxigallery.picture.gal_id+]~]">
          		<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.strings.go_to_gallery+]" alt="[+maxigallery.strings.go_to_gallery+]" />
          	</a>
          	<p style="width:[+maxigallery.picture_width_thumb+]px;">[+maxigallery.pageinfo.pagetitle:htmlent+]</p>
          </li>
          


          Check the maxigallery wiki article for more information on custom templates if you don’t know what to do.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 3633
            • 84 Posts
            Thanks doze.