TYPO3 TypoScript标记导航激活

时间:2017-06-08 08:50:45

标签: html typo3 typoscript typo3-6.2.x

如何在TypoScript中标记导航活动?

导航TypoScript看起来像这样:

NAVIMAIN = HMENU
NAVIMAIN.entryLevel = 0
#NAVIMAIN.excludeUidList = 

NAVIMAIN {
    1 = TMENU
    1 {
        expAll = 1
        wrap = <ul class="cf">|</ul>

        noBlur = 1
        NO = 1
        NO.ATagTitle.field = title
        NO.wrapItemAndSub = <li>|</li>  
        NO.wrapItemAndSub = <li>|</li>

        ACT = 1
        ACT.ATagParams = class="act"
        ACT.wrapItemAndSub = <li> |</li>  
    }
}

全部谢谢

1 个答案:

答案 0 :(得分:3)

NAVIMAIN = HMENU
NAVIMAIN {
    entryLevel = 0
    1 = TMENU
    1 {
        expAll = 1
        wrap = <ul class="cf">|</ul>

        noBlur = 1
        NO = 1
        NO {
            ATagTitle.field = title
            wrapItemAndSub = <li>|</li>  
        }
        ACT < .NO
        ACT {
            wrapItemAndSub = <li class="active">|</li>
        }
    }
}