Gmane
Favicon
From: Kyle Johnson <kyle.johnson@...>
Subject: Re: navtree_properties - show only one subtree
Newsgroups: gmane.comp.web.zope.plone.user
Date: 2004-11-15 22:54:13 GMT (4 years, 2 weeks, 3 days, 8 hours and 39 minutes ago)

On Nov 15, 2004, at 5:35 PM, Nikolai Kirsebom wrote:

> I've created a set of tabs and for each tab, there is a folder with a
> corresponding index_html page (shown as default page when the tab is
> selected).  In the navigation tree I would like to have only the
> selected folder with its children.  Currently all the top-level
> folders (including a folder I've created to hold all the events) is
> shown.

Here's the note I posted Saturday for someone else asking about the 
same thing.  You must have joined the list *just* too late to see it.  
'-)

Begin forwarded message:

> There is a navtree property called topLevel that you can override to 
> change where the navigation porlet starts.  To see how it works in 
> general, go to the ZMI and navigate to 
> portal_properties/navtree_properties.  If you check topLevel and 
> change it to something like 2, you'll see what it does.  Changing that 
> at portal_properties/navtree_properties changes it sitewide (which 
> isn't what you want).
>
> To change it for a directory (and on down, since the property is 
> inherited), navigate the the folder in question in the ZMI, then click 
> the properties tab.  Add a property called topLevel (capitalization 
> counts) and set it to the number that will get the desired result (3 
> or 4 should be right for you).
>
> One important thing to note.  If you set topLevel to anything but 0 
> you will lose the HOME link in the navigation portlet as well.  I 
> don't know why that happens, but it does happen, at least on Plone 
> 2.0.4.

/kyle
---
Kyle Johnson : Director, Information Technology Services
Duke University Student Affairs
kyle.johnson@... : http://www.studentaffairs.duke.edu
-----------------------------------------------------------------------
In dog years, I'm dead.

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8