<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73">
<TITLE>RE: [Plone-users] navigation slot forced to show current folder and subfolders only ?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Thanks- that seems to work pretty well for Plone 1 (with a couple of formatting differences, but it works for folder view only and not when there is an index_html page in folder</FONT></P>
<BR>
<P><FONT SIZE=2>Subject: Re: [Plone-users] navigation slot forced to show current folder</FONT>
<BR><FONT SIZE=2>and subfolders only ?</FONT>
</P>
<BR>
<P><FONT SIZE=2>I dont know about Plone1 but you could do that in Plone2 by changing one </FONT>
<BR><FONT SIZE=2> word. All you have to do is change a line of code in </FONT>
<BR><FONT SIZE=2>portlet_navigation.pt (in your ZMI click portal_skins then on </FONT>
<BR><FONT SIZE=2>plone_portlets, click on portal_navigation.pt click customize.). It can </FONT>
<BR><FONT SIZE=2>be also found on your filesystem in you CMFPlone/skins/plone_portlets/ </FONT>
<BR><FONT SIZE=2>folder. Make sure you always have a backup copy before you change. Look </FONT>
<BR><FONT SIZE=2>for code similar to code below.</FONT>
</P>
<P><FONT SIZE=2><div metal:define-macro="portlet"</FONT>
<BR><FONT SIZE=2> i18n:domain="plone"</FONT>
<BR><FONT SIZE=2> tal:omit-tag=""</FONT>
<BR><FONT SIZE=2> tal:define="isContainer here/isPrincipiaFolderish|nothing;</FONT>
<BR><FONT SIZE=2> navBatchStart request/navBatchStart | python:None;</FONT>
<BR><FONT SIZE=2> portalObject portal;</FONT>
<BR><FONT SIZE=2> tree </FONT>
<BR><FONT SIZE=2>python:here.plone_utils.createNavigationTreeBuilder(portalObject,navBatchStart);</FONT>
<BR><FONT SIZE=2> showOtherNav python:0;</FONT>
<BR><FONT SIZE=2> showNav python:0;</FONT>
<BR><FONT SIZE=2> listContentsPermission python:checkPermission('List </FONT>
<BR><FONT SIZE=2>folder contents', here);</FONT>
</P>
<P><FONT SIZE=2>change</FONT>
<BR><FONT SIZE=2>python:here.plone_utils.createNavigationTreeBuilder(portalObject,navBatchStart);</FONT>
<BR><FONT SIZE=2>to</FONT>
<BR><FONT SIZE=2>python:here.plone_utils.createNavigationTreeBuilder(here,navBatchStart);</FONT>
<BR><FONT SIZE=2>It works for me in plone2. I have never played with plone1. So, I am </FONT>
<BR><FONT SIZE=2>sorry on that front.</FONT>
<BR><FONT SIZE=2>Disadvantage is that navigation slot is empty when folder is empty.</FONT>
<BR><FONT SIZE=2>Kelley, Sean wrote:</FONT>
<BR><FONT SIZE=2>> I want to have the navigation portlet display only the current folder </FONT>
<BR><FONT SIZE=2>> and subfolder items in Plone 1 and ultimately Plone 2. How do I set the </FONT>
<BR><FONT SIZE=2>> menu to display this way in a particular folder? I have a copy of </FONT>
<BR><FONT SIZE=2>> main_template in this folder now. Where can I hard code the url?</FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
</BODY>
</HTML>