[Zope] Navigator Tree

Michael Bernstein webmaven@lvcm.com
Mon, 07 Feb 2000 15:58:13 +0000


Chris Withers wrote:
> 
> Hi,
> 
> Has anyone done a tree-style navigator for the directory structure in Zope?
> 
> What I'm aiming for is exactly the same sort of tree as you get in the /manage
> views, except not in a different frame. Also, hopefully something that I can
> include in standard_html_header so that it's visible throughout the site.

Check out the 'Global Tree-Tag Navigation' Howto on the old Zope site:
http://classic.zope.org:8080/Documentation/HowTo/DTML/treetag

The first version was written by me, But this is a substantial rewrite
that Amos Latteier subsequently did.
Keep in mind that using the tree tag has a few drawbacks:

- it's dificult to exclude objects from the tree completely (ie. you get
a Folder for Images, or at least a '+' icon)
- the tree does not maintain it's state (open/closed branches) across
separate pages

In general, for better control over navigation, I use the Navigator
product: http://www.zope.org/Members/jonas/Navigator

HTH,

Michael Bernstein