<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (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]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@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:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.E-MailFormatvorlage18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.E-MailFormatvorlage19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1036583998;
mso-list-type:hybrid;
mso-list-template-ids:-390015986 67895297 67895299 67895301 67895297 67895299 67895301 67895297 67895299 67895301;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level4
{mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level7
{mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi Siegfried,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I haven’t used the tag yet, but I would guess, that you have to set startLevel to 1 and endLevel to 1+n (n being the number of levels you want to show in your navigation).<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>HTH<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>Best regards</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'>_________________________________________<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'> </span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>Kai Schliemann</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>Senior IT-Berater</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'> </span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>comundus GmbH</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>Schüttelgrabenring 3, D-71332 Waiblingen</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>Telefon +49 7151-50028-0</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>E-Mail <a href="mailto:k.schliemann@comundus.com">k.schliemann@comundus.com</a></span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>Internet <a href="http://www.comundus.com/">www.comundus.com</a></span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>Geschäftsführer Klaus Hillemeier </span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>Amtsgericht Stuttgart, HRB 264290</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'> </span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";color:gray'>comundus ist ein Unternehmen der IT EXCELLENCE Group<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#FF7F00'>_________________________________________<o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:8.0pt;color:#FF7F00'><o:p> </o:p></span></b></p><p class=MsoNormal><a href="http://www.facebook.com/pages/Comundus-GmbH/163398933697079"><b><span style='font-size:8.0pt;text-decoration:none'><img border=0 width=16 height=16 id="Bild_x0020_1" src="cid:image001.jpg@01CC4205.67966140" alt="but_face"></span></b></a><b><span style='font-size:8.0pt;color:#FF7F00'> </span></b><b><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#FF7F00'><a href="http://www.facebook.com/pages/Comundus-GmbH/163398933697079">Finden Sie uns auf Facebook</a></span></b><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>Im Auftrag von </b>Siegfried Ehret<br><b>Gesendet:</b> Mittwoch, 13. Juli 2011 18:57<br><b>An:</b> opencms-dev@opencms.org<br><b>Betreff:</b> [opencms-dev] How to use the cms navigation tag ?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=FR>Hi all,<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>I have 2 languages under 2 folders :<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=FR style='font-family:Symbol'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=FR>/fr (added in the navigation under « fr »)<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo2'><![if !supportLists]><span lang=FR style='font-family:Symbol'><span style='mso-list:Ignore'>·<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=FR>/en (added in the navigation under « en »)<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>In each language folder, I have a tree of files.<o:p></o:p></span></p><p class=MsoNormal><span lang=FR>When I am under /fr, I want a navigation with only the /fr tree, and when I am under /en, I want a navigation with only the /en tree.<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>I can’t make it work.<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>If I do the following :<o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'><cms:navigation type="forSite" startLevel="0" endLevel="1" var="nav"/><o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'><ul><o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'> <c:forEach items="${nav.items}" var="elem"><o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'> <li>${elem.navText}</li><o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'> </c:forEach><o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'></ul><o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>I got fr and en as result.<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>I also tried to use the resource parameter but I got no result.<o:p></o:p></span></p><p class=MsoNormal><span lang=FR>Seems like the resource parameter is not used.<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>Anyone here with a good idea ?<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>Last remark :<o:p></o:p></span></p><p class=MsoNormal><span lang=FR>I looked at the CmsJspNavigationBean.java file, and I saw this :<o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'>case forSite:<o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'> if (m_resource == null) {<o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'> m_items = m_builder.getSiteNavigation();<o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'> } else {<o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'> m_items = m_builder.getSiteNavigation(m_resource, m_startLevel);<o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'> }<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> break;<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>In CmsJspNavBuilder.java, the getSiteNavigation function is like this :<o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New"'>public List<CmsJspNavElement> getSiteNavigation(String folder, int endLevel) { … }<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>There is something strange between the names of the level parameters.<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>Thanks in advance.<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR>Siegfried Ehret<o:p></o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR><o:p> </o:p></span></p></div></body></html>