<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Make the relevant template segment NOT
editable, right now its an editable block is why it gets that link box.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Colin Coolidge<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, January 19, 2006
9:25 AM<br>
<b><span style='font-weight:bold'>To:</span></b> The OpenCms mailing list<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [opencms-dev] Opencms
Navigation Modification</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<div id=RTEContent>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>OK...next how do I get rid of the opencms symbol that is part of the
'body' in the attached jpg?<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<b><i><span style='font-weight:bold;font-style:italic'>Phil.Launchbury@tssi.co.uk</span></i></b>
wrote:<o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0in 0in 0in 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>I ran into the same problem and solved it
by using one of the other property fields (Navinfo I think) as a menu level
indicator. I then added a bit of extra code (BTW - I'm not a programmer so any
errors are strictly my own or the website where I stole the bits of code from
:-) ) to the process that creates the menus as follows:</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>while (i.hasNext()) <br>
 {<br>
  CmsJspNavElement ne = (CmsJspNavElement)i.next();</span></font><o:p></o:p></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>  String resource_name =
ne.getResourceName();<br>
  String menu_level = ne.getInfo();<br>
  if (menu_level == null)<br>
  {<br>
   menu_level = "9";<br>
  }<br>
  <br>
  // if we have a directory then make a new menu<br>
  if ((resource_name.charAt(resource_name.length() - 1) == '/')
&& (menu_level.equals("1")))<br>
  {<br>
   if ((menu_open) &&
(menu_level.equals("1")))<br>
   { <br>
    out.println(MenuEnd());<br>
    ++menu_id;<br>
    cell_id = 1;<br>
    menu_bar += MenuBarDivider();<br>
   }<br>
   out.println(MenuStart(menu_id));<br>
   menu_open = true;<br>
   menu_bar += MenuBarEntry(menu_id, ne.getNavText());<br>
  }<br>
  else // otherwise just add the menu entry<br>
  {<br>
   if ((menu_open) &&
(menu_level.equals("2")))<br>
   {<br>
    out.println(MenuItem(ne.getNavText(), menu_id,
cms.link(ne.getResourceName()), cell_id));<br>
    ++cell_id;<br>
   }<br>
  }<br>
 }</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>That now gives me the two layers of menu -
if n avinfo contains 1 then it is a top-level menu item and if it contains 2
then it appears in the drop-down.</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Hope this helps..</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Cheers,</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Phil.<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<!-- Converted from text/plain format -->

<div>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>Phil Launchbury<br>
IT Manager<br>
------------------------------------------------------<br>
TSSI Systems Ltd,<br>
Rutland House, Har greaves Road,<br>
Groundwell Industrial Estate,<br>
Swindon, <st1:place w:st="on"><st1:City w:st="on">Wiltshire</st1:City>, <st1:PostalCode
 w:st="on">SN25 5AZ</st1:PostalCode>,  <st1:country-region w:st="on">U.K.</st1:country-region></st1:place><br>
<br>
Tel:  +44  (0) 8450 707 898<br>
Email: support@tssi.co.uk <br>
Website: www.tssi.co.uk<br>
<br>
'Securing Business Around the World'<br>
-------------------------------------------------------</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabIndex=-1>

</span></font></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>frank.michel@gmail.com<br>
<b><span style='font-weight:bold'>Sent:</span></b> 19 January 2006 14:04<br>
<b><span style='font-weight:bold'>To:</span></b> joe@galway.net; <st1:PersonName
w:st="on">opencms-dev@opencms.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [opencms-dev] Opencms
Navigation Modification</span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi,<br>
I'm looking for a similar thing:<br>
I want to see all 1st level navigation entries and the ones that are in the
actual opened folder on the second level.<br>
Using the getNavigationForFolder I can get the top level or a ll sublevel. <br>
But how can I get only the actual sublevel when inside?<br>
<br>
And: how can I identify that I am on the index.html of a subfolder?<br>
With navi.getResourceName().equals(filename)) I can verify it for other
documents but that does not work for the index.html.<br>
Any ideas or best practices?<br>
<br>
Thanks in advance!<br>
 Frank<br>
<br>
<br>
<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 1/19/06, <b><span style='font-weight:bold'>Joe
Desbonnet</span></b> <<a href="mailto:jdesbonnet@gmail.com">
jdesbonnet@gmail.com</a>> wrote:</span></font></span> <o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>You can make navigation any way you want with a few lines of script. <br>
Eg this will create<br>
a bread crumb trail:<br>
<br>
<%<br>
{<br>
        Iterator iter =
navBuilder.getNavigationBreadCrumb().iterator();<br>
        iter.next();<br>
        out.write("<a
href=\"" + cms.link ("/") + "\">Home</a>
");<br>
        while (iter.hasNext()) {<br>
                CmsJspNavElement
nav = (CmsJspNavElement)iter.next();<br>
                out.write("
&gt; <a href=\"" + cms.link(nav.getResourceName()) +<br>
"\">" + nav.getNavText() + "</a> ");<br>
        }<br>
}<br>
%><br>
<br>
Also remember that you can style LI tags any way you want with CSS --<br>
I've even seen UL/LI being used to create horizantal tabs. <br>
<br>
<br>
Joe.<br>
<br>
<br>
On 1/18/06, Colin Coolidge <<a href="mailto:colincoolidge@yahoo.com">colincoolidge@yahoo.com</a>>
wrote:<br>
> I see that by default the left nav puts all the entries in <li>
</li> tags. <br>
> Where can I change this?<br>
><br>
> looks like somewhere in here????:  <%=
cms.buildNavigationLeft() %><br>
><br>
>  ________________________________<br>
> Yahoo! Photos<br>
>  Got holiday prints? See all the ways to get quality prints in
your hands <br>
> ASAP.<br>
><br>
><br>
><br>
> _______________________________________________<br>
> This mail is sent to you from the opencms-dev mailing list<br>
> To change your list options, or to unsubscribe from the list, please visit
<br>
> <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
><br>
><br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list <br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
________________________________________________________________________<br>
This e-mail has been scanned for all viruses by Star. The<br>
service is powered by MessageLabs. For more information on a proactive<br>
anti-virus service working around the clock, around the globe, visit:<br>
http://www.star.net.uk<br>
________________________________________________________________________<br>
<br>
________________________________________________________________________<br>
This e-mail has been scanned for all viruses by Star. The<br>
service is powered by MessageLabs. For more information on a proactive<br>
anti-virus service working around the clock, around the globe, visit:<br>
http://www.star.net.uk<br>
________________________________________________________________________<br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
http://lists.opencms.org/mailman/listinfo/opencms-dev<o:p></o:p></span></font></p>

</blockquote>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Yahoo! Photos<br>
Ring in the New Year with <a
href="http://us.rd.yahoo.com/mail_us/taglines/photos/*http:/pa.yahoo.com/*http:/us.rd.yahoo.com/mail_us/taglines/photos/evt=38087/*http:/pg.photos.yahoo.com/ph/page?.file=calendar_splash.html&.dir=">Photo
Calendars</a>. Add photos, events, holidays, whatever.<o:p></o:p></span></font></p>

</div>

</body>

</html>