[Zope] <dtml-var sequence-index format ??

Michel Pelletier michel@digicool.com
Fri, 17 Sep 1999 11:29:30 -0400


> -----Original Message-----
> From: Geir B Hansen [mailto:geirh@funcom.com]
> Sent: Friday, September 17, 1999 7:40 AM
> To: zope@zope.org
> Subject: [Zope] <dtml-var sequence-index format ??
> 
> 
> inside a <dtml-in> tag , i have
> <dtml-var sequence-index>, showing the number of the item in the
> sequence.
> 
> The first item starts with the value 0, whereas i'd like it to start
> with the value 1.
> can i in any way specify this with the "fmt=whatever" 
> property, or do i
> have to make an expression to add 1 to all the 
> sequence-index-numbers ?

You're looking for <dtml-var sequence-number>.  But the answer to your
question is really 'This is documented in the DTML Guide'. ;)

-Michel