[Zope] Displaying list of documents in sub-folders?

Andreas Jung andreas@andreas-jung.com
Mon, 29 Apr 2002 06:18:23 -0400


try

 <dtml-in expr="computers.objectValues('DTML Document')">

and read the documentation of the ObjectManager ;-)

-aj

----- Original Message -----
From: "EvH" <edward_van_h@bigfoot.com>
To: <zope@zope.org>
Sent: Monday, April 29, 2002 06:11
Subject: [Zope] Displaying list of documents in sub-folders?


> Hello,
>
> I'm still a newbie at Zope, so please bear with me as I read through the
> Zope Book and experiment...
>
> In the main page, I'd like to have a index_html DTML Method object display
> a list of documents that are located in sub-folders, eg. computers/, news/
>
> The following doesn't work:
>
> <dtml-in expr="objectValues('computers/DTML Document')">
>      <tr>
>      <td><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></td>
>      </tr>
> </dtml-in>
>
> Should I use a Python Script object instead?
>
> Any tip much appreciated
> Eddie.
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>