[Zope] Listing contents....
Dieter Maurer
dieter@handshake.de
Thu, 23 Aug 2001 21:25:29 +0200 (CEST)
Rustad, Aaron writes:
> I am trying to list all the available 'Portal Folders' in a menu, I am able
> to do this by using this code:
>
> <dtml-in expr="objectValues('Portal Folder')">
> <A HREF="&dtml-id;"><dtml-var title><BR>
> </dtml-in>
> However, if the current object happens to be a default "index_html" page,
> the page above won't list because objecValues is working on index_html
> page....( I hope I am right in my assumptions).
>
> Can anyone suggest a strategy to determine if what I am looking at is a leaf
> document, and how to list the parent 'Portal Folders'.
Options:
1. make "index_html" a DTML Method rather than a DTML Document
2. use:
<dtml-in expr="PARENTS[0].objectValues('Portal Folder')">
Dieter