Re: vertical navigation
Adrian Nussbaum <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
hi the submenu i could do after alain's answer... how ever ... but it worked. but a problem i still haven't solved is the distance to the left border... (i already tried to find a way to explain it: -- menu ----------- submenu i'd like to have -- menu ----- submenu ) (it's only a visual problem...) which css-class or id do i have to change? or better: what do i have to change? ul? li? anything other? (imo the menu and the submenu are both in a <li></li>-Tag as an element of the same <ul>..., right?) adrian ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xpure - communication. digital and printed - www.xpure.ch adrian nussbaum | linsentalstrasse 5 | ch-8482 sennhof mobile: + 41 764 283 913 | [email protected] | http://www.xpure.ch | http://blogomanie.xpure.ch ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Am 23.12.2005 um 16:11 schrieb Matthias Dieke: > Hi, > > >> >> hi all >> >> i need to have a vertical navigation. the submenus i need to have >> directly under the corresponding main-menu-point. >> >> like this: >> >> - item 1 >> - item 2 >> - item 3 >> --- sub 3.1 >> --- sub 3.2 >> --- sub 3.3 >> - item 4 >> - item 5 >> ... > > > > First uncomment this line "<xsl:apply-templates > select="$navitreePlugin/collection/items/collection[@selected = > 'selected']"/>" in your master.xsl in the template "leftnavi" > > > You also have to uncommet the "call-template"-line in your "top- > navi"-DIV > > > <div id="topnavi"> > <!-- <xsl:call-template name="topnavi"/> --> > </div> > > > Then copy the following to your "leftnavi"-Template > > > <ul> > <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"> > <li><a href="{@relink}" target="_blank"> > <xsl:value-of select="title"/> > </a></li> > </xsl:when> > <xsl:otherwise> > <li> <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></li> > <xsl:if test="@selected='selected'"> > <xsl:apply-templates > select="$navitreePlugin/collection/items/collection[@selected = > 'selected']"/> > </xsl:if> > </xsl:otherwise> > </xsl:choose> > </xsl:for-each> > </ul> > > This should help ;) > > Matthias >> >> >> know what i mean? How could i do this in my master.xsl? >> >> >> thnx. >> adrian >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> xpure - communication. digital and printed - www.xpure.ch >> 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 >> > > -- > eine für alle und alle für Einen... > > [email protected] > [email protected] > [email protected] > [email protected] > > GMX DSL-Flatrate 1 Jahr kostenlos* + WLAN-Router ab 0,- Euro* > Bis 31.12.2005 einsteigen! Infos unter: http://www.gmx.net/de/go/dsl -- bitflux-cms mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms