我想标记实际选择的语言。
我想要的是给<a>
元素一个类。这可能吗?
typoscript看起来像这样:
## Localization menu:
temp.langMenu = HMENU
temp.langMenu.special = language
temp.langMenu.special.value = 0,3,1
temp.langMenu.1 = GMENU
temp.langMenu.1.NO {
XY = [5.w]+4, [5.h]+4
transparentColor = #17353e
backColor = #17353e
5 = IMAGE
5.file = fileadmin/bilder/DE-flag-32.png || fileadmin/bilder/US-flag-32.png || fileadmin/bilder/CN-flag-32.png
}
temp.langMenu.1.ACT < lib.langMenu.1.NO
temp.langMenu.1.USERDEF1 < lib.langMenu.1.NO
temp.langMenu.1.ACT.backColor = #000000
temp.langMenu.1.USERDEF1 = 1
temp.langMenu.1.USERDEF1.5.file = fileadmin/bilder/DE-flag-32.png || fileadmin/bilder/US-flag-32.png || fileadmin/bilder/CN-flag-32.png
temp.langMenu.1.USERDEF1.noLink = 1
答案 0 :(得分:2)
ACT < .NO
ACT {
stdWrap.typolink.ATagParams = class="navLangAct"
}
答案 1 :(得分:1)
试着成为一个音板,我只是受到质疑,我对typo3的帮助不大,但是这可以吗?
## Localization menu:
temp.langMenu = HMENU
temp.langMenu {
special = language
special.value = 0,3,1
1 = GMENU
1 {
NO = 1
NO {
XY = [5.w]+4, [5.h]+4
transparentColor = #17353e
backColor = #17353e
5 = IMAGE
5.file = fileadmin/bilder/DE-flag-32.png || fileadmin/bilder/US-flag-32.png || fileadmin/bilder/CN-flag-32.png
}
## ACT < lib.langMenu.1.NO
ACT < .NO
ACT {
backColor = #000000
## would this do the trick ?
wrapItemAndSub = <span class="active">|</span>
}
## USERDEF1 < lib.langMenu.1.NO
USERDEF1 < .NO
USERDEF1 {
5.file = fileadmin/bilder/DE-flag-32.png || fileadmin/bilder/US-flag-32.png || fileadmin/bilder/CN-flag-32.png
noLink = 1
}
}
}
(我不知道为什么或如何使用这个temp。而不是直接操纵lib,但这不是你的问题......)