I’m in a loop to display products…
4 per row, unlimited rows’
I need to know if it’s the nth entry… example every 4 items… So I know its the first column as in
item 1, item5, item 9 etc…
Or last item
item 4, item 8, item 12
Tried these where
{foreach from=$sproducts item="product" name="sproducts"}
{counter assign="bobis" name="bobis" }
{if $bobis is div by 4|| $laster ==1}
{if $bobis mod 4 == 0}
{if $bobis !=4 && $bobis !=8 && $bobis != 12}
Any simple way?
If I understand the question right, just put a
col-class on your item:You should get the following:
…and so on