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'. Thanks! Aaron.
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
participants (2)
-
Dieter Maurer -
Rustad, Aaron