I have tried to generate CGblog articles in summary template that there are specific html <row> one in three line.
This is what I want to generate:
Code: Select all
<div class="row">
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
</div> <!-- end row -->
This is how I have tried to do it:
Code: Select all
{foreach from=$items item=entry name='foo'}
{if $smarty.foreach.foo.index is div by 3}
<div class="row">
{/if}
<div class="item">
</div>
{if $smarty.foreach.foo.iteration is div by 3}
</div>
{/if}
{/foreach}
But no. It won't work like this.