<DIV id=RTEContent> <DIV>OK...next how do I get rid of the opencms symbol that is part of the 'body' in the attached jpg?</DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV><BR><BR><B><I>Phil.Launchbury@tssi.co.uk</I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <META content="MSHTML 6.00.2900.2802" name=GENERATOR> <DIV dir=ltr align=left><SPAN class=335040917-19012006><FONT face=Arial color=#0000ff size=2>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:</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=335040917-19012006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr
align=left><SPAN class=335040917-19012006><FONT face=Arial color=#0000ff size=2>while (i.hasNext()) <BR> {<BR> CmsJspNavElement ne = (CmsJspNavElement)i.next();</FONT></SPAN></DIV> <DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV> <DIV dir=ltr align=left><SPAN class=335040917-19012006><FONT face=Arial color=#0000ff size=2> 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> }<BR></FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=335040917-19012006><FONT face=Arial color=#0000ff size=2>That now gives me the two layers of menu - if navinfo
contains 1 then it is a top-level menu item and if it contains 2 then it appears in the drop-down.</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=335040917-19012006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=335040917-19012006><FONT face=Arial color=#0000ff size=2>Hope this helps..</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=335040917-19012006><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=335040917-19012006><FONT face=Arial color=#0000ff size=2>Cheers,</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=335040917-19012006><FONT face=Arial color=#0000ff size=2>Phil.</DIV></FONT></SPAN> <DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><!-- Converted from text/plain format --> <DIV><FONT size=2>Phil Launchbury<BR>IT Manager<BR>------------------------------------------------------<BR>TSSI Systems Ltd,<BR>Rutland House, Hargreaves
Road,<BR>Groundwell Industrial Estate,<BR>Swindon, Wiltshire, SN25 5AZ, U.K.<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>-------------------------------------------------------<BR></FONT></DIV> <DIV> </DIV><BR> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>frank.michel@gmail.com<BR><B>Sent:</B> 19 January 2006 14:04<BR><B>To:</B> joe@galway.net; opencms-dev@opencms.org<BR><B>Subject:</B> Re: [opencms-dev] Opencms Navigation Modification<BR></FONT><BR></DIV> <DIV></DIV>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 all
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><BR> <DIV><SPAN class=gmail_quote>On 1/19/06, <B class=gmail_sendername>Joe Desbonnet</B> <<A href="mailto:jdesbonnet@gmail.com"> jdesbonnet@gmail.com</A>> wrote:</SPAN> <BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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(" > <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><BR></BLOCKQUOTE></DIV><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</BLOCKQUOTE> <DIV><BR></DIV></DIV><p>
<hr size=1>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.