I'm trying to restructure the data from an existing table. I've managed to get the information in an array with this structure l.settings:rows[n]:cols[n]
However &mvt:row:cols[g.col]; causes a runtime error;
Array index must be positive integer
What's the workaround? I remember we had this discussion before but can't find it.
However &mvt:row:cols[g.col]; causes a runtime error;
Array index must be positive integer
Code:
<mvt:assign name="g.col" value="2" /> <mvt:foreach iterator="row" array="rows"> &mvt:row:cols[1]; | &mvt:row:cols[g.col]; <br> </mvt:foreach>
Comment