I was wondering if it is possible to use a loop to show categories rather than preformatting. (You can ignore the issues regarding getting everything into a loop) ....I just need some help with the tags. I have two columns working but I can't get 2+ working :(
<tr>
<%loop category_loop%>
<%if loop_iteration % '2' and loop_iteration > '1'%>
</tr><tr>
<%endif%>
<td>
Some Stuff
</td>
<%endloop%>
</tr>
</table>
This correctly formats in two columns but when I change the 2 to 3 it doesn't. Can anyone see how to change that code so I could change the number of columns?
Thanks.
Code:
<table width="90%" cellpadding="10"> <tr>
<%loop category_loop%>
<%if loop_iteration % '2' and loop_iteration > '1'%>
</tr><tr>
<%endif%>
<td>
Some Stuff
</td>
<%endloop%>
</tr>
</table>
This correctly formats in two columns but when I change the 2 to 3 it doesn't. Can anyone see how to change that code so I could change the number of columns?
Thanks.