Does backward iteration work?

Does backward iteration work?

Friday 28 January 2005 1:27:20 am - 2 replies

Author Message

Jan Borsodi

Friday 28 January 2005 2:13:36 am

You can reverse the iteration by setting the <i>reverse</i> attribute.

{section name=Num loop=-5 reverse}
{$Num:index}:{$Num:number}:{$Num:key} Number: {$Num:item}<br/>
{/section}

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Michael D.

Friday 28 January 2005 8:36:31 am

Thank you, works.

Might be helpful to add this to the docs (http://www.ez.no/ez_publish/documentation/development/libraries/ez_template/functions/section<b></b>).

I would do it myself but I think I should read "about" and "guidelines" before, but these links are empty.

You must be logged in to post messages in this topic!

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