[Plone-UI] Nav portlet: only the current top folder

Lucie Lejard lucie at sixfeetup.com
Wed Jul 26 19:01:30 UTC 2006


Hello Matt,

you have an easy way to do that using the zmi.

You go in portal_properties -> navtree_properties
Then you can uncheck "includeTop" and put the "topLevel" equal to 1. 
Then you can change other properties depending on what you want.

Lucie

Matt Hampel wrote:
> I'm trying to change the Plone navigation portlet to show only the
> items in the current path AND the contents of the current folder.
> 
> Instead of this current format:
> - Home
> - About
> - Documentation
> - Products
> --- Product A
> --- Product B
> ------- Current page
> ------- Another page
> - Support
> 
> The navigation portlet would only show:
> 
> - Products
> --- Product B
> ------- Current page
> ------- Another page
> 
> The code to do this is in "portlet_navtree_macro", specifically
> tal:condition="python: (not item['no_display']) and (cur_item or
> parent_shows_children or children) and (bottomLevel <= 0 or level
> < bottomLevel-1)" (inside root/portal_skins/plone_portlets)
> 
> But I don't know the Plone conditions well enough to pull only the
> current folder tree AND the children of the current folder (I can do
> the latter). Can anyone give me suggestions on how to exclude the
> unwanted folders from the navigation, or pointers towards the correct
> variable / portlet documentation?
> 
> Thanks lots,
> Matt
> 
> _______________________________________________
> UI mailing list
> UI at lists.plone.org
> http://lists.plone.org/mailman/listinfo/ui


-- 
S i x  F e e t  U p , I n c .  |  "Nowhere to go but open source"
Silicon Valley: +1 (650) 401-8579 x605
Midwest: +1 (317) 861-5948 x605
Toll-Free: 1-866-SIX-FEET
mailto:lucie at sixfeetup.com
http://www.sixfeetup.com  |  Zope Hosting from $19.95/month




More information about the UI mailing list