Hi KK,
I created a gallery using the mosaic feature so I can be able to show images and videos. What I want to be able to do now is only the show the gallery section ONLY when at least an image or video has been uploaded. I did this but it's not working:
Any help will be appreciated. Thank you
I created a gallery using the mosaic feature so I can be able to show images and videos. What I want to be able to do now is only the show the gallery section ONLY when at least an image or video has been uploaded. I did this but it's not working:
- Code: Select all
<cms:capture into='show_news_gallery'>
<cms:show_mosaic 'news_gallery' limit="1">
<cms:if k_tile_name='image' >
<div class="single-item">
<img src="<cms:show image />" alt="">
</div>
</cms:if>
<cms:if k_tile_name='video_audio' >
<cms:do_shortcodes> <cms:show video_audio /></cms:do_shortcodes>
</cms:if>
</cms:show_mosaic>
</cms:capture>
<cms:if "<cms:not_empty news_gallery_images />" >
... Show gallery here
</cms:if>
Any help will be appreciated. Thank you