How to start numbering from 1 ..in ZPT index items
Submitted by: low
Last Edited: 2001-10-12
Category: PageTemplates
|
Average rating is:
0.0 out of 5
|
(0 ratings) |
|
Description:
When using <span tal:repeat="something somewhere/data">,
together with <span tal:replace="repeat/something/index"> to get somekind of numbering for your data what you will end up with is ...
0 data1
1 data2
3 data3
4 data4
The way to overcome this is is to use :
<span tal:replace="repeat/something/number"> instead of index
|
Source (Text):
<span tal:repeat="something somewhere/data">
<span tal:replace="repeat/something/number"/>
<span tal:replace="something" />
|
Comments:
No Comments
|