We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13825
    • 55 Posts
    Is it possible to show 4 images from a gallery on the first page and then the next four on the second page? basically so it’s quicker to view images from a gallery.
      • 7923
      • 4,213 Posts
      Yes, &pics_per_page=`4`, see available parameters in MODx wiki.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 13825
        • 55 Posts
        Thanks that works for thumbnails...I’m trying to do this for main images though.
        Or is the solution to make thumbs look like big images?
          • 7923
          • 4,213 Posts
          You could for example do a custom galleryPictureTpl and show the normal pictures instead of thumbnails..

          eg, replace:

          <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]"

          with

          <img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]"

          in the default galleryPictureTpl and save it to a chunk. Then in the snippet call, use &galleryPictureTpl=`yourchunkname` &pics_per_page=`4`



            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 13825
            • 55 Posts
            fantastic! thanks