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

Alexander Limi limi at plone.org
Wed Aug 2 00:35:53 UTC 2006


You can do this by going to

Site Setup -> Navigation Settings

You want a setup similar to what plone.org runs, right?

-- Alexander

On Wed, 26 Jul 2006 11:44:11 -0700, Matt Hampel  
<mahatm at gmail.com> 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 &lt;= 0 or level
> &lt; 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



-- 
_____________________________________________________________________

      Alexander Limi · Chief Architect · Plone Solutions · Norway

  Consulting · Training · Development · http://www.plonesolutions.com
_____________________________________________________________________

       Plone Co-Founder · http://plone.org · Connecting Content
   Plone Foundation · http://plone.org/foundation · Protecting Plone





More information about the UI mailing list