Can I skip the wrapperTpl when there are no results?

As of v1.4, you can specify &wrapperIfEmpty=`0` on the mgGetImages or mgGetTags snippet call to return an empty result if there are no (matching) images/tags.

Prior to 1.4, you could add a conditional wrapper based on the [[+tag_total]] or [[+image_count]] placeholders.

Still need help? Send us an email Send us an email