I want to wrap a div class = row around every three channels entries. How can I do that?
{exp:channel:entries channel="boite_a_outils" disable="member_data|trackbacks|comments" dynamic="off" orderby="title" sort="asc" {triggers:entries}}
{if no_results} <p>Aucun lien relié à cette catégorie.</p> {/if}
{if count == 1 OR count == 4}<div class="row">{/if}
<div class="col-xs-12 col-sm-4 text-center wrap-boite-a-outil">
<h4>{title}</h4>
<a href="{lien}" title="{title}" class="button">Lien</a>
</div>
{if count == 3 OR count == 6}</div>{/if}
{/exp:channel:entries}
This is what I have so far, but I don't want this option, I want it to be dynamic. Right now, as you can see in my code, I check count if it's equal to 1 or 4...how can I make this dynamic?
Thx!