Hi
I am trying to show different code/content if a value is empty, I have the following but think I have done it wrong
There is values/content in the slideshow so thought with the following code, it would show the still image if the slideshow content was empty but it's not showing the slideshow even though it has content. Can anyone help please as bit lost.
I am trying to show different code/content if a value is empty, I have the following but think I have done it wrong
There is values/content in the slideshow so thought with the following code, it would show the still image if the slideshow content was empty but it's not showing the slideshow even though it has content. Can anyone help please as bit lost.
- Code: Select all
<cms:if "<cms:not_empty slide_image />" >
<section id="main-slider">
<div class="owl-carousel">
<cms:show_repeatable 'slides' >
<div class="item" style="background-image: url(<cms:show slide_image/>);">
<div class="slider-inner">
<div class="container">
<div class="row">
<div class="col-sm-12 text-center">
<div class="carousel-content">
<h2><cms:show slide_heading/></h2>
<cms:show slide_text/>
</div>
</div>
</div>
</div>
</div>
</div>
</cms:show_repeatable>
</div><!--/.owl-carousel-->
</section><!--/#main-slider-->
<cms:else />
<section id="services">
<img src="<cms:show static_image/>" alt="">
</section>
</cms:if>