[ZPT] sequence question

Dieter Maurer dieter@handshake.de
Tue, 4 Dec 2001 22:40:01 +0100


Klinger Wolfgang writes:
 > <tal:block define="sequence python:root.menu_list()">
 >   <tal:block repeat="item sequence">
 > ...
 >   </tal:block>
 > </tal:block>
 > 
 > Is there a way to get the position of the current
 > item in the sequence?
Look at the "repeat" variable documentation. Something like the following
will do:

     "repeat/item/index"


Dieter