23 Aug
2001
23 Aug
'01
7:25 p.m.
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