[thelist] Zope - top level folder listing

martin.p.burns at uk.pwcglobal.com martin.p.burns at uk.pwcglobal.com
Thu Mar 28 11:25:00 CST 2002


Memo from Martin P Burns of PricewaterhouseCoopers

-------------------- Start of message text --------------------

Hi there

I'm trying to get a consistent nav to the top-level sections in my site
using Zope, with the basic idea of pulling back a list of the folders and
outputting them with links.

Simple, eh? I thought so, with a simple iteration through the top level
object along the lines of
  <dtml-in expr="rootObject.objectValues('Folder')">

My problem seems to be getting an object reference to that root object
which works at all depths of the site, as
  <dtml-in expr="aq_parent.objectValues('Folder')">
and similar only work 1 level down in the site.

Any suggestions?
Probably something which would get me the length of the PARENTS sequence
would do it, as I could then probably do
  <dtml-in expr="PARENTS[foo].objectValues('Folder')">

I'm sure the information is all there in the Zope book, but while it's a
great quick reference, it's really, really light on examples.

Cheers
Martin

--------------------- End of message text --------------------

This e-mail is sent by the above named in their
individual, non-business capacity and is not on
behalf of PricewaterhouseCoopers.

PricewaterhouseCoopers may monitor outgoing and incoming
e-mails and other telecommunications on its e-mail and
telecommunications systems.
----------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.




More information about the thelist mailing list