I have a blog-page where I sometimes want to add this slider.
I've created a template with the following regions:
- blog image
- blog image title
- blog content
- repeatable region for a slideshow
- caption for slideshow
The code to show the slider looks like this:
A repeatable region is always visible in the admin panel which means the slider is loaded even when it doesn't contain an image like this:
What do I need to add to the code so the slider is only visible when an image is added to the repeatable region?
I've created a template with the following regions:
- blog image
- blog image title
- blog content
- repeatable region for a slideshow
- caption for slideshow
The code to show the slider looks like this:
- Code: Select all
<div class="royalSlider rsDefault">
<cms:show_repeatable 'foto_slideshow' >
<img class="rsImg" src="<cms:show my_slideshow_image />" alt="" />
<p><cms:show image_caption /></p>
</cms:show_repeatable>
</div>
A repeatable region is always visible in the admin panel which means the slider is loaded even when it doesn't contain an image like this:
- Code: Select all
<div class="royalSlider rsDefault">
</div>
What do I need to add to the code so the slider is only visible when an image is added to the repeatable region?