[Zope] nested loops in zope
Juergen R. Plasser / Hexagon
plasser@hexagon.at
Tue, 11 Jun 2002 16:43:56 +0200
Hi!
--On Dienstag, 11. Juni 2002 19:40 +0530 "Deepak, V" <v_deepak@mentorg.com>
wrote:
>
> I have a nested dtml-in loop
> Please tell me how to access the sequence-item of the outer loop
I'v done this by using dtml-let (the second dtml-let is optional):
<dtml-in "_.range(0,2)">
<dtml-let x=sequence-item>
<dtml-in "_.range(0,2)">
<dtml-let y=sequence-item>
<dtml-var x>, <dtml-var y><br>
</dtml-let>
</dtml-in>
</dtml-let>
</dtml-in>
Result:
0, 0
0, 1
1, 0
1, 1
Regards,
Juergen