Hi, wonder if anyone can shed some light on this.
I’ve got a wedding channel which we publish to. The template for this is wedding which shows the 1st article in the content. It has a nav on left which link to the other published pages.
I’ve got an if conditional (see code below) which doesn’t work on the template page eg: site/wedding but works on the other pages eg: site/wedding/cakes
I’ve got if conditionals for stylesheets and they work fine.
Any ideas?
The if conditional:
{exp:channel:entries}
{if wedding-gallery}
<!-- START: Gallery Container -->
<div id="gallery-container">
<!-- START: Slider -->
<ul id="slider">
<li>
{wedding-gallery}
<?php if ({count} > 1 && {count} % 3 == 1): ?>
</li><li>
<?php endif ?>
{wedding-cake-information}
<!-- START: Product -->
<div class="product">
{image}
<a href="http://{title_permalink={template_group}/wedding-cake-details}">Find out more</a>
</div>
<!-- END: Product -->
{/wedding-cake-information}
{/wedding-gallery}
</li>
</ul>
<!-- END: Slider -->
</div>
<!-- END: Gallery Container -->
{/if}
{/exp:channel:entries}