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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.