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

Brian Lloyd Brian@digicool.com
Fri, 17 Sep 1999 08:57:52 -0400


> 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 ?

Use <dtml-var sequence-number> - that will give you the
1-based number of the item.


Brian Lloyd        brian@digicool.com
Software Engineer  540.371.6909              
Digital Creations  http://www.digicool.com