3-level (horizontal) navigation

Adrian Nussbaum <[email protected]> Fri, 28 Apr 2006 21:31:39 +0200
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
hi

i've got a flux-cms-powered site with a horizontal navigation on the  
top. at the moment there is the main-navigation and the second level.  
if i create a ressource/collection, which should appear in a third  
level, its also placed in the second level...

my xsl looks like this:


+++ FIRST LEVEL:

     <xsl:template name="firstlevelnavi">

         <xsl:for-each select="$navitreePlugin/collection/items/ 
collection[display-order != 0]">
             <xsl:sort select="display-order" order="ascending" data- 
type="number"/>
             <xsl:choose>
                 <xsl:when test="@relink">
                     <a href="{@relink}">
                         <xsl:value-of select="title"/>
                     </a>
                 </xsl:when>
                 <xsl:otherwise>
                     <a href="{$webrootLang}{substring-after(uri,'/')}">
                         <xsl:if test="@selected='selected'">
                             <xsl:attribute name="class">selected</ 
xsl:attribute>
                         </xsl:if>
                         <xsl:value-of select="title"/>
                     </a>
                 </xsl:otherwise>
             </xsl:choose>
         </xsl:for-each>

     </xsl:template>



+++ SECOND LEVEL

     <xsl:template name="secondlevelnavi">
   <xsl:if test="($navitreePlugin/collection/items/collection 
[@selected = 'selected']/items[*[not(filename) or filename !=  
'index']/display-order &gt; 0 ])">
		 <xsl:apply-templates select="$navitreePlugin/collection/items/ 
collection[@selected = 'selected']"/>

</xsl:if>
     </xsl:template>



How should the third level look like? And do I have to change  
anything in the other levels?



adrian


----
   xpure | adrian nussbaum | linsentalstrasse 5 | ch-8482 sennhof
   mobile: + 41 764 283 913 | [email protected] | http://www.xpure.ch |   
http://blogomanie.xpure.ch
----

-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms