How to make the first image in MoreGallery appear on a page, and only the rest of the images in the popups?

I have MoreGallery set up, but I want to create or set an image to be the cover image, so that it shows up as the thumbnail for the gallery but doesn’t display in the popup slide show. I’m not finding info on how to do that in the MoreGallery user guide.

What is modGallery?
Do you mean MoreGallery (by modmore), the extra Gallery or something else?

Yes! I had “Modmore” in my mind so I said “modGallery” instead. Fixed now.

So I changed the title to ask about one way that could do what I need:

Is there same parameter in the mgGetImages snippet that will show the first image of a gallery on the page, and clicking that will pop up a slide show which does NOT include that first image?

I can’t help you with this question as MoreGallery is not an open source extra.

mgGetImages seems to have the properties &limit and &offset that maybe could be used to only show/exclude the first image. Or maybe you could use tags to mark the cover image. Or you could use a normal image TV for the cover.


You could also try asking the question in the relevant ModMore forum, if you don’t get an answer here:

1 Like

I ended up writing a custom script to pre-process the galleries and then send a request to mgGetImages. This way, I can set a TV on the gallery to indicate whether to include the first image as just a cover, and then I have two calls to mgGetImages (using limit and offset), the first for just the first image of the gallery, using a one of two chunks depending on whether the image is part of the slideshow, and the second to create the images for the popup slideshow (for which I’m using fancybox). So, the first image will either be part of the fancybox slide show image group, or will just be a link to the slideshow and not part of the group. This way, I can have multiple galleries on a page, each with their own setting for cover images.