I have a nested dtml-in loop Please tell me how to access the sequence-item of the outer loop
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
On 11/6/02 3:10 pm, "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
Zen in three steps... #1: no HTML mail on this list thank you... #2: <dtml-in "" prefix="bing"> <dtml-in "" prefix="bong"> <dtml-var bing_variable> </dtml-in> </dtml-in> #3: RTFM @ http://www.zope.org/Documentation/ZopeBook/AppendixA.stx Hth Tone -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
Hi Tony! Much better than mine! (even though I RTFM and knew this prefix attr) Thnx, Juergen --On Dienstag, 11. Juni 2002 15:54 +0100 Tony McDonald <tony.mcdonald@ncl.ac.uk> wrote:
# 2: <dtml-in "" prefix="bing"> <dtml-in "" prefix="bong">
<dtml-var bing_variable>
</dtml-in> </dtml-in>
On 11/6/02 4:05 pm, "Juergen R. Plasser / Hexagon" <plasser@hexagon.at> wrote:
Hi Tony!
Much better than mine! (even though I RTFM and knew this prefix attr)
Thnx, Juergen
--On Dienstag, 11. Juni 2002 15:54 +0100 Tony McDonald <tony.mcdonald@ncl.ac.uk> wrote:
# 2: <dtml-in "" prefix="bing"> <dtml-in "" prefix="bong">
<dtml-var bing_variable>
</dtml-in> </dtml-in>
Cheers Juergen! Just thought that folks might like the ZPT version (which I'm spending all my noodle-power on grokking at the mo') <tal:outerloop repeat="bing ..."> <tal:innerloop repeat="bong ..."> <p tal:content="bing/variable">Bing Variable</p> </tal:innerloop> </tal:outerloop> ...now watch ChrisW come up with something cleaner and meaner! :) Tone. -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
participants (3)
-
Deepak, V -
Juergen R. Plasser / Hexagon -
Tony McDonald