Friday 08 August 2003 12:39:11 pm
Okay, I am probably missing something very obvious, but I'm stumped at this point. I have the following code:
{let matrix=$attribute.content matrixcount=0}
{set matrixcount=1}
*{$matrixcount}* <br />
{section name=Rows loop=$matrix.rows.sequential}
{set matrixcount=2}
**{$matrixcount}** <br />
{section show=$Rows:item.columns.1} {* Show the field's value *}
{set matrixcount=3}
***{$matrixcount}***
{section-else} {* Display if field is empty - leave blank to display nothing *}
{/section}
{/section} {/let}
Which should print out
*1*
**2** ***3***
But prints out
*1*
**1** ***1*** I can't find a way to alter the variable 'matrixcount' within the sections. What am I doing wrong? Alex
Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]
<i>When in doubt, clear the cache.</i>
|