[TYPO3-english] Simple submenu
Ralf-Rene Schröder
ralf.rene at online.de
Mon Jul 28 16:44:11 CEST 2014
your TS war wrong... (forgotten "}" and more)
(if you copy TS with < then the dot notation works only on same level)
use this:
TOPNAV = HMENU
TOPNAV.wrap =<ul class="nav navbar-nav">|</ul>
TOPNAV.stdWrap.wrap = <div id="navbar-collapse collapse">|</div>
TOPNAV.1 = TMENU
TOPNAV.1 {
NO = 1
NO {
wrapItemAndSub = <li>|</li>
}
ACT = 1
ACT {
allWrap = <li class="active">|</li>
}
}
TOPNAV.2 < TOPNAV.1
TOPNAV.2.wrap = <ul class="level2">|</ul>
}
or better use this:
TOPNAV = HMENU
TOPNAV {
wrap = <div id="navbar-collapse collapse">|</div>
1 = TMENU
1 {
wrap = <ul class="nav navbar-nav">|</ul>
NO = 1
NO {
wrapItemAndSub = <li>|</li>
}
ACT = 1
ACT {
allWrap = <li class="active">|</li>
}
}
2 < .1
2 {
wrap = <ul class="level2">|</ul>
}
}
Am 28.07.2014 15:24, schrieb supershivas:
> Hi everybody,
>
> Sorry to bother you with this classic and redundant question.
> I need to add a simple menu based on the following structure:
>
> *Home
> About
> Products
> Product 1
> Product 2
> Contact*
>
> Here is the TScript I use but the 2nd level never shows up.
>
> * TOPNAV = HMENU
> TOPNAV.wrap =<ul class="nav navbar-nav">|</ul>
> TOPNAV.stdWrap.wrap = <div id="navbar-collapse collapse">|</div>
> TOPNAV.1 = TMENU
> TOPNAV.1 {
> NO = 1
> NO {
> wrapItemAndSub = <li>|</li>
> }
> ACT = 1
> ACT {
> allWrap = <li class="active">|</li>
> }
> TOPNAV.2 < .1
> TOPNAV.2.wrap = <ul class="level2">|</ul>
> }*
>
> I only get this :
>
> *<div id="navbar-collapse collapse">
> <ul class="nav navbar-nav">
> <li class="active"> Home <index.php?id=2> </li>
> <li> About <index.php?id=3> </li>
> <li> Products <index.php?id=4> </li>
> <li> Contact <index.php?id=7> </li>
> </ul>
> </div>*
>
> Thanks for your help!
>
>
>
> --
> View this message in context: http://typo3.3.n7.nabble.com/Simple-submenu-tp263635.html
> Sent from the TYPO3 English mailing list archive at Nabble.com.
>
--
image[FORMAT] - Ralf-René Schröder
http://www.image-format.eu ... Wir geben Ihrem Image das richtige Format
More information about the TYPO3-english
mailing list