[Zope] Re: Current Folder
Maik Jablonski
maik.jablonski at uni-bielefeld.de
Wed Apr 28 13:04:10 EDT 2004
Asad Habib wrote:
> Hello. Is there a simple way I can get access to the id/title of the
> folder that my DTML document is in? I have done this before but don't
> recall how. Essentially, I am trying to access the id/title of
> the parent(i.e. folder) in which my index_html resides. One way is to use
> the PARENTS variable. Is there a simpler way which would give me access to
> only the parent object and not all the parents up to the root. Any help
> would be greatly appreciated. Thanks.
You can use:
<dtml-var "aq_parent.title_or_id()">
Cheers, Maik
More information about the Zope
mailing list