[TYPO3] Changing the allwrap of menu items that are always active
StephenBungert
stephenbungert at yahoo.de
Wed Sep 17 16:11:25 CEST 2008
### temp.mainNav ###
### ------------ ###
temp.mainNav = HMENU
temp.mainNav {
alwaysActivePIDlist = 202,211
1 = TMENU
1 {
collapse = 1
NO {
allWrap = {$lnBoxStart} | {$lnBoxEnd}
stdWrap {
htmlSpecialChars = 1
field = subtitle // title
}
}
ACT < .NO
ACT = 1
ACT.doNotLinkIt = 1
ACT.allWrap = {$lnBoxStart} | {$lnBoxEndAct}
CUR < .NO
CUR = 1
CUR.doNotLinkIt = 1
CUR.allWrap = {$lnBoxStart} | {$lnBoxEndAct}
}
2 = TMENU
2 {
wrap = <ul id="leftNav" class="lvl2">|</ul>
NO {
allWrap = <li id="lnItem" class="mainNav2 no"> | </li>
stdWrap {
htmlSpecialChars = 1
field = subtitle // title
}
}
ACT < .NO
ACT = 1
ACT.allWrap = <li id="lnItem" class="mainNav2 act"> | </li>
ACT.doNotLinkIt = 1
CUR < .NO
CUR = 1
CUR.allWrap = <li id="lnItem" class="mainNav2 cur"> | </li>
CUR.doNotLinkIt = 1
}
}
The above is the TS for a menu on my site. In {$lnBoxEndAct} is an arrow
that is either pointing down or up depending on whether the menu item has
been clicked on or not. There are also two items in the list
(alwaysActivePIDlist) which always show the subpages.
When one of the links is ACT or CUR the arrow points up to indicate that
when you click on this item it will close the sub menu. Everything works
great with it, except the designer doesn't want an arrow on the always open
menu items. I thought about hiding these with CSS or with javascript, but
before I do I wanted to see if there was a way to do it with TS. Is there?
Maybe I can specify a different allWrap for the PID's listed in the
alwaysActivePIDlist? If so, how?
Thanks for any help.
-----
--
Stephen Bungert
--
View this message in context: http://www.nabble.com/Changing-the-allwrap-of-menu-items-that-are-always-active-tp19532956p19532956.html
Sent from the TYPO3 English mailing list archive at Nabble.com.
More information about the TYPO3-english
mailing list