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. Cheers for any help, Chris
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.
Cheers for any help,
I think you want the <dtml-tree> tag. More information can be found in the DTML guide. ~ethan
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
participants (3)
-
Chris Withers -
ethan mindlace fremen -
Michael Bernstein