Forums / Developer / How can I increment a variable template?

How can I increment a variable template?

Author Message

Adolfo Barragán

Friday 30 May 2003 12:22:52 am

I need use a variable template and increment it for composing a name, but I don't achieve it.

I try:

{let idx=0}
{section name=list loop:my_list}
...
{set idx= sum(idx,1)} OR {inc($idx)}
{concat("name",$idx)}
...
{/section}
{/let}

Paul Forsyth

Friday 30 May 2003 12:29:55 am

i had this problem. Look at:

http://ez.no/developer/ez_publish_3/forum/developer/using_letset_within_namespaces

for a way to get this working.

paul