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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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