I could have sworn I had something similar setup on another site, but I can’t find it now…basically I want to use a conditional to add some html to the output of a channel loop every 3rd time through the loop…
I tried something like below…but this doesn’t work, probably because I set multiple numbers with the pipe.
{exp:channel:entries channel="enewsletter_issue" sort="asc" dynamic="no"}
{if count == "1|3|5"}
<div class="row">
{/if}
<article>
{exp:ce_img:single src="{art_image}" width="53" height="53" crop="yes"}
<h1><a href="http://{title_permalink=enewsletter/article}">{title}</a></h1>
</article>
{if count == "2|4|5"}
</div>
{/if}
{/exp:channel:entries}This works, but only one time and I need to be able to do it multiple times…
{exp:channel:entries channel="enewsletter_issue" sort="asc" dynamic="no"}
{if count == "1"}
<div class="row">
{/if}
<article>
{exp:ce_img:single src="{art_image}" width="53" height="53" crop="yes"}
<h1><a href="http://{title_permalink=enewsletter/article}">{title}</a></h1>
</article>
{if count == "2"}
</div>
{/if}
{/exp:channel:entries}Any thoughts?