how do I generate html for a given number of items
23 Mar
2000
23 Mar
'00
10:51 p.m.
sinde dtml does not provide a " for loop " structure how can I generate form fields equivalent to the number of catalog items somebody has choosen i.e <form> <for noOfTimes> <input type="text" name= ... </for> </form> The dtml-in tag only accepts lists and such -- ########################## necessity is the mother of invention ##########################
23 Mar
23 Mar
11:18 p.m.
New subject: [Zope] how do I generate html for a given number of items
On Thu, 23 Mar 2000, sathya wrote:
<for noOfTimes> <input type="text" name= ... </for> </form> The dtml-in tag only accepts lists and such
Use the handy dandy Python range operator (generates a list of ascending integers of a specified length): <dtml-in "_.range(noOfTimes)"> <input type="text" name="... </dtml-in> --RDM
9510
Age (days ago)
9510
Last active (days ago)
1 comments
2 participants
participants (2)
-
R. David Murray -
sathya