Get image count of resource

On a portfolio page I want to show a slideshow only if where are more than one images. If only one image is in the gallery the image should display without slideshow functionality. For this it would be simple to get the amount of images of a gallery resource. Ist there a placeholder for the amount of images?

Thanks

Hey @ivmedia, you can use [[+image_count]] in the &wrapperTpl chunk: https://docs.modmore.com/en/MoreGallery/v1.x/Snippets/mgGetImages.html#page_%26wrapperTpl+Chunk - does that work for you?

Yes. Great. Didn’t found it in the toc. Perfect. Thanks.

1 Like