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

    I have to calls to maxigallery, one is in the main gallery, and what is on the homepage. The homepage call shows the latest image that was added to any of th galleries. When I click on the latest image, it display the previous and next images fine, cycling through all images in the gallery, however, the index file takes me back to the home page, which makes sense. However, I would like the index page to take me to the index of whichever gallery the user is browsing. I can’t hardcode it into the template because the gallery url will be different depending on which images was added last.

    I am using the latest versions of both MODx and Maxigallery.

    Thanks
    Lee
      http://www.blend.uk.com | Web Design by Blend
      • 7923
      • 4,213 Posts
      Do a custom pictureTpl and use [~[+maxigallery.picture.gal_id+]~] as the index link


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 17717
        • 433 Posts
        Works great, thanks

        Lee
          http://www.blend.uk.com | Web Design by Blend