[Zope] dtml-in for another folder
Andreas Jung
andreas@andreas-jung.com
Thu, 29 Nov 2001 19:48:43 -0500
----- Original Message -----
From: "Gabriel Genellina" <gagenellina@softlab.com.ar>
To: <zope@zope.org>
Sent: Thursday, November 29, 2001 19:34
Subject: [Zope] dtml-in for another folder
> Hi
>
> This is a very basic question.
>
> I have FolderA inside the root folder, and an DTML Method in FolderA:
>
> <dtml-var standard_html_header>
> <ul>
> <dtml-in objectValues>
> <li><dtml-var title_or_id></li>
> </dtml-in>
> </ul>
> <dtml-var standard_html_footer>
>
> It generates a list of all objects in the folder, ok.
>
> Then, I have a FolderB inside FolderA. When I try to do the same thing on
> that folder (referencing FolderB from FolderA):
> <dtml-in FolderB/objectValues> that generates a KeyError.
> The same thing when I try to use a full path: <dtml-in
/FolderA/objectValues>
Try <dtml-in "FolderA.objectValues()">
Andreas