6
Quote:
it seems that '' should not be there.
You're right, my mistake.
{if $smarty.capture.column <= 2} table> {/if}
can be simply
table>
because we will close the table tag anyway at the end.
PS Now the data cells are repeated for the number of columns in the template. I believe further optimization would be possible by using the original template and switching the
and
tags on and off as needed as in:
{if $smarty.capture.column == "0"}
<tr>
{/if}
datablock
{if $smarty.capture.column == "2"}
tr>
{/if}
This would make it more generic.