typo3 标记活动语言

typo3 marking active languages

我想标记实际激活的所选语言。

我想要的是给<a>元素一个class。这可能吗?

打字稿看起来像这样:

    ## 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

只是尝试做一个共鸣板,我只是通过被质疑得到了帮助,我对 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
        }
    }
}

(我不知道为什么或如何使用这个临时文件而不是直接操作库,但这不是你的问题...)

ACT < .NO
ACT {
  stdWrap.typolink.ATagParams = class="navLangAct"
}