[Zope] <!--#in--> statement starting from "root" folder
Perez, Victor
vaperez@bechtel.com
Tue, 06 Jul 1999 07:27:50 -0700
Thanks, works fine now.
Is somewhere a good reference on all this stuff? (the PARENTS thing doesn't
appear anywhere in the zope docs, at least the ones I've reading)
-
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
> -----Original Message-----
> From: Alexander Staubo [SMTP:alex@mop.no]
> Sent: Friday, July 02, 1999 12:56 AM
> To: Zope Mailing List (E-mail)
> Subject: RE: [Zope] <!--#in--> statement starting from "root" folder
>
> 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 )
> >
>
>
> _______________________________________________
> 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 )