Hallo zusammen!
Ich benutze das Plugin FreeCssDropdown und finde das eigentlich ganz gut. Nun wollte ich gerne meinem Home-Button keine Klasse activesite zuweisen wenn diese Seite aktiv ist. Problem ist ich stehe total auf dem Schlauch 😉. Ich habe gelesen dass OptionSplit wohl das richtige sein könnte. Damit kann ich wohl jedem Link-Item eine eigene Klasse geben, aber ich komme damit nicht weiter. Mein Typoscript aus der Setup.txt habe ich noch nicht so abgeändert bekommen, dass es funktioniert. Wäre für jeden Tipp sehr dankbar!
Hier das TS vom Freecssdropdown!
plugin.freeCssDropDownMenu.horizontal = HMENU
plugin.freeCssDropDownMenu.horizontal {
special = directory
special.value = {$plugin.freeCssDropDownMenu.horizontal.start}
excludeUidList = {$plugin.freeCssDropDownMenu.horizontal.exclude}
if {
value = {$plugin.freeCssDropDownMenu.horizontal}
equals = 1
}
1 = TMENU
1 {
wrap = <ul class="dropdown dropdown-horizontal"> | </ul>
expAll = 1
noBlur = 1
NO = 1
NO {
ATagTitle.field = abstract // description // subtitle // title
wrapItemAndSub = |*| <li> | </li> |*| <li class="last"> | </li>
stdWrap.htmlSpecialChars = 1
}
ACT < .NO
ACT.wrapItemAndSub = |*| <li class="activesite"> | </li> |*| <li class="last activesite"> | </li>
IFSUB < .NO
IFSUB.wrapItemAndSub = |*| <li class="dir"> | </li> |*| <li class="dir last"> | </li>
ACTIFSUB < .NO
ACTIFSUB.wrapItemAndSub = |*| <li class="dir activesite"> | </li> |*| <li class="dir activesite last"> | </li>
}
2 < .1
2.wrap = <ul> | </ul>
3 < .2
4 < .2
5 < .2
}
Danke!