<!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>&nbsp; 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&nbsp; 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>&lt;div metal:define-macro=&quot;portlet&quot;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i18n:domain=&quot;plone&quot;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tal:omit-tag=&quot;&quot;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tal:define=&quot;isContainer here/isPrincipiaFolderish|nothing;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; navBatchStart request/navBatchStart | python:None;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; portalObject portal;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tree </FONT>
<BR><FONT SIZE=2>python:here.plone_utils.createNavigationTreeBuilder(portalObject,navBatchStart);</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showOtherNav python:0;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showNav python:0;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>&gt; I want to have the navigation portlet display only the current folder </FONT>
<BR><FONT SIZE=2>&gt; and subfolder items in Plone 1 and ultimately Plone 2.&nbsp; How do I set the </FONT>
<BR><FONT SIZE=2>&gt; menu to display this way in a particular folder?&nbsp; I have a copy of </FONT>
<BR><FONT SIZE=2>&gt; main_template in this folder now.&nbsp; Where can I hard code the url?</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
</P>

</BODY>
</HTML>