[Zope] <!--#in--> statement starting from "root" folder

Alexander Staubo alex@mop.no
Fri, 2 Jul 1999 06:55:32 +0200


Try:

<!--#in "PARENTS[-1].objectValues(['Folder', 'DTML Document'])"
  sort="title"-->

PARENTS[-1] gives you the topmost parent. PARENTS[0] gives you the most
immediate parent.

--
Alexander Staubo             http://www.mop.no/~alex/
"`This must be Thursday,' said Arthur to himself, sinking low over
his beer, `I never could get the hang of Thursdays.'"
--Douglas Adams, _The Hitchhiker's Guide to the Galaxy_

>-----Original Message-----
>From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
>Perez, Victor
>Sent: 1. juli 1999 20:00
>To: 'zope'
>Subject: [Zope] <!--#in--> statement starting from "root" folder
>
>
>Hi zoppers:
>
>First of all, I just started working on zope so I apologize if
>this question
>if too obvious for you, but I didn't find the answer on the docs....
>
>I'm trying to make a navigation section on the left of my
>pages, something
>pretty near to the <!--#tree--> statement, but I don't want the "plus"
>signs, so I decided to work with <!--#in--> statements based
>on a example
>I've found on the Zbook doc (zb_all_view).
>
>My "navigation" DTML starts with <!--#in "objectValues(['Folder', 'DTML
>Document'])" sort="title"--> and I want it to always start
>from the "root"
>folder, showing only the subfolders for the branch I'm inside.
>
>Any help is welcomed.
>
>-
>Atentamente,
>Victor Perez Muena
>Automation Support - Port Area (Los Vilos)
>Los Pelambres Project - Bechtel Chile Ltda.
>Ext. 8033, Phone: (2) 361-8033 - Fax: (2) 361-8025
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(For developer-specific issues, use the companion list,
>zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>