[Zope] Newbie question
Andres Corrada
andres@corrada.com
Sat, 22 Apr 2000 03:01:33 -0400
gpgreen@olywa.net wrote:
>
> I am just getting started in Zope and have what is probably an obvious question.
> I have an external method that returns a list. I understand how to write
> dtml to iterate through the list using <dtml-in>. My question is how do
> I write a dtml-method that takes the current sequence-item and does something
> in it.
>
> So in index_html
>
> <dtml-in "my_external_method()">
>
> <dtml-var the_other_dtml_method(sequence-item)>
>
> </dtml-in>
>
> And in the other dtml-method, how do I access the sequence-item passed in?
>
I like using:
<dtml-var the_other_dtml_method( nameOfVariable=sequence-item )>
then somewhere in the_other_dtml_method you refer to the variable by its
name: nameOfVariable.
------------------------------------------------------
Andres Corrada-Emmanuel Email: andres@corrada.com
------------------------------------------------------