3-level (horizontal) navigation

View: New views
1 Messages — Rating Filter:   Alert me  

3-level (horizontal) navigation

by Adrian Nussbaum :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 > 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 | a.n@... | http://www.xpure.ch |  
http://blogomanie.xpure.ch
----

--
bitflux-cms mailing list
bitflux-cms@...
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
LightInTheBox - Buy quality products at wholesale price!