[TYPO3] Changing the allwrap of menu items that are always active
Andreas Burg
typo3 at andreasburg.de
Wed Sep 17 16:57:29 CEST 2008
Hallo Stephen,
I think if your alwaysActivePIDlist are always the first or the last menu items,
it should be easy to use optionSplit, else you can try "if". I've shortened your
TS, as I think it's easier to read.
temp.mainNav = HMENU
temp.mainNav {
alwaysActivePIDlist = 202,211
1 = TMENU
1 {
collapse = 1
NO = 1
NO {
# try optionSplit or "if" on next line
allWrap = {$lnBoxStart} | {$lnBoxEnd}
stdWrap {
htmlSpecialChars = 1
field = subtitle // title
}
}
ACT < .NO
ACT.doNotLinkIt = 1
ACT.allWrap = {$lnBoxStart} | {$lnBoxEndAct}
CUR < .ACT
}
2 < .1
2 {
wrap = <ul id="leftNav" class="lvl2">|</ul>
NO.allWrap = <li id="lnItem" class="mainNav2 no"> | </li>
ACT.allWrap = <li id="lnItem" class="mainNav2 act"> | </li>
CUR.allWrap = <li id="lnItem" class="mainNav2 cur"> | </li>
}
}
Andreas
More information about the TYPO3-english
mailing list