<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [opencms-dev] CmsXmlNav.getNavParent() bug?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Ok. Maybe I mixed up the method names ... but it works - that was important too say.</FONT>
</P>
<P><FONT SIZE=2>Have a nice weekend!</FONT>
</P>
<P><FONT SIZE=2>Nico</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: "Bührle, Martin, FCI1" [<A HREF="mailto:martin.buehrle@lfk.eads.net">mailto:martin.buehrle@lfk.eads.net</A>] </FONT>
<BR><FONT SIZE=2>Sent: Donnerstag, 7. November 2002 17:34</FONT>
<BR><FONT SIZE=2>To: 'opencms-dev@www.opencms.org'</FONT>
<BR><FONT SIZE=2>Subject: WG: [opencms-dev] CmsXmlNav.getNavParent() bug?</FONT>
</P>
<P><FONT SIZE=2>> Nico,</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> please remember that we use the getNavPopup - method instead of</FONT>
<BR><FONT SIZE=2>> getNavRoot.</FONT>
<BR><FONT SIZE=2>> I.e.</FONT>
<BR><FONT SIZE=2>> <METHOD name="getNavPop">3,3</METHOD></FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Martin</FONT>
<BR><FONT SIZE=2>> _________________________________________________________________________</FONT>
<BR><FONT SIZE=2>> Martin Buehrle</FONT>
<BR><FONT SIZE=2>> EADS - European Aeronautic Defence and Space Company</FONT>
<BR><FONT SIZE=2>> Telefax: +49 89 3179-8927</FONT>
<BR><FONT SIZE=2>> eMail: Martin.Buehrle@lfk.eads.net</FONT>
<BR><FONT SIZE=2>> _________________________________________________________________________</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -----Ursprüngliche Nachricht-----</FONT>
<BR><FONT SIZE=2>> Von: Nico Krause [SMTP:Nico.Krause@nsc.eu.com]</FONT>
<BR><FONT SIZE=2>> Gesendet am: Donnerstag, 7. November 2002 15:58</FONT>
<BR><FONT SIZE=2>> An: 'opencms-dev@www.opencms.org'</FONT>
<BR><FONT SIZE=2>> Betreff: RE: [opencms-dev] CmsXmlNav.getNavParent() bug?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Martin, </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> yes - I remembered also some miracles within the surroundings you</FONT>
<BR><FONT SIZE=2>> stated. </FONT>
<BR><FONT SIZE=2>> At the end it worked for me. Remember it was build for a special</FONT>
<BR><FONT SIZE=2>> need in a special company. So I don't care about bugs, if it works for me</FONT>
<BR><FONT SIZE=2>> pretty good.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> But have a look over my structure - it looks like: </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> /site_root/home/index.html (- the index.html) normally you need no</FONT>
<BR><FONT SIZE=2>> special folder for it. So "Home" is a item within the primary navigation </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> /site_root/products/product1.html </FONT>
<BR><FONT SIZE=2>> /site_root/products/product2.html </FONT>
<BR><FONT SIZE=2>> /site_root/products/product3.html </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> "Products" is also within the primary navigation and each product is</FONT>
<BR><FONT SIZE=2>> drawn within secondary navigation. </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I only need a deep of 2 levels. So I used following method </FONT>
<BR><FONT SIZE=2>> <method name="getNavRoot">2,2</method> </FONT>
<BR><FONT SIZE=2>> which means extract only 2 levels (number after comma) starting</FONT>
<BR><FONT SIZE=2>> within the second level. (number before comma) - try it.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> As I unofficially heard (*pssst!*) - A better or debugged or</FONT>
<BR><FONT SIZE=2>> re-implemented Nav - function will be included within the next releases -</FONT>
<BR><FONT SIZE=2>> I got already a sample.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> But did'nt tested it yet. </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Hoping to give you some information which will help you. Special</FONT>
<BR><FONT SIZE=2>> greetings too Martin - "the navigation" - Bührle from here :-)</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Best Wishes and have also a successful time, </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Nico </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -----Original Message----- </FONT>
<BR><FONT SIZE=2>> From: Martin Leja [ <<A HREF="mailto:Martin.Leja@mpluss.de">mailto:Martin.Leja@mpluss.de</A>>] </FONT>
<BR><FONT SIZE=2>> Sent: Donnerstag, 7. November 2002 15:13 </FONT>
<BR><FONT SIZE=2>> To: opencms-dev@www.opencms.org </FONT>
<BR><FONT SIZE=2>> Subject: [opencms-dev] CmsXmlNav.getNavParent() bug? </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> hi, </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> my vfs looks like this: </FONT>
<BR><FONT SIZE=2>> /site_folder/folder_a/file_a.html </FONT>
<BR><FONT SIZE=2>> /site_folder/folder_a/file_b.html </FONT>
<BR><FONT SIZE=2>> /site_folder/folder_b/file_a.html </FONT>
<BR><FONT SIZE=2>> /site_folder/folder_b/file_b.html </FONT>
<BR><FONT SIZE=2>> ... </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> all html files should include a navigation element so that the</FONT>
<BR><FONT SIZE=2>> following nav </FONT>
<BR><FONT SIZE=2>> is displayed </FONT>
<BR><FONT SIZE=2>> <nav text of folder_a and link to index file> | <nav text of</FONT>
<BR><FONT SIZE=2>> folder_b and </FONT>
<BR><FONT SIZE=2>> link to index file> | ... </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> i thought that the a "<method name="getNavParent">1</method>" would</FONT>
<BR><FONT SIZE=2>> be the </FONT>
<BR><FONT SIZE=2>> right method to use here, but it gives me the navigation of the root</FONT>
<BR><FONT SIZE=2>> "/", </FONT>
<BR><FONT SIZE=2>> i.e. </FONT>
<BR><FONT SIZE=2>> Background | Projects | Service | Homepage </FONT>
<BR><FONT SIZE=2>> because i have the opencms homepage imported. This is an bug isn't</FONT>
<BR><FONT SIZE=2>> it? </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I get the desired result with "<method</FONT>
<BR><FONT SIZE=2>> name="getNavRoot">2</method>", but </FONT>
<BR><FONT SIZE=2>> would rather use the above getNavParent because this method acts</FONT>
<BR><FONT SIZE=2>> relative to </FONT>
<BR><FONT SIZE=2>> the path of the current file whereas getNavRoot proceeds in an</FONT>
<BR><FONT SIZE=2>> absolute way </FONT>
<BR><FONT SIZE=2>> starting from the root folder. Therefore getNavParent will still</FONT>
<BR><FONT SIZE=2>> work if i </FONT>
<BR><FONT SIZE=2>> move the folder "site_folder" to another location. </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -- </FONT>
<BR><FONT SIZE=2>> Regards, martin.leja@mpluss.de </FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
</BODY>
</HTML>