HMENU 对象的 stdWrap 和 optionSplit
stdWrap and optionSplit for HMENU object
lib.language = COA
lib.language {
10 = HMENU
10 {
special = language
special.value = 0,1
special.normalWhenNoLanguage = 0
wrap =
1 = TMENU
1 {
noBlur = 1
NO = 1
NO {
doNotLinkIt = 1
linkWrap = <li>|</li>
stdWrap.override = [int] English || [de-de] Deutsch
stdWrap {
typolink {
parameter.data = page:uid
additionalParams = &L=0 || &L=1
addQueryString = 1
addQueryString.exclude = L,id,no_cache
addQueryString.method = GET
no_cache = 0
}
}
}
ACT < .NO
ACT.linkWrap = <li class="active">|</li>
}
}
wrap = <ul>|</ul>
}
.......
lib.language.10.1.NO.stdWrap.override = [us] English || [de] Deutsch
使用上一段默认的 TypoScript 代码来构建语言菜单,在这里我用此处显示的最后一行 TypoScript 覆盖语言标签的显示,前端显示:
[int] English [de] Deutsch
(两行的混合)。
有人知道为什么吗?
添加打字错误行:
lib.language.10.1.ACT.stdWrap.override = [us] English || [de] Deutsch
用你的线,你把NO设置复制到ACT设置后覆盖
lib.language = COA
lib.language {
10 = HMENU
10 {
special = language
special.value = 0,1
special.normalWhenNoLanguage = 0
wrap =
1 = TMENU
1 {
noBlur = 1
NO = 1
NO {
doNotLinkIt = 1
linkWrap = <li>|</li>
stdWrap.override = [int] English || [de-de] Deutsch
stdWrap {
typolink {
parameter.data = page:uid
additionalParams = &L=0 || &L=1
addQueryString = 1
addQueryString.exclude = L,id,no_cache
addQueryString.method = GET
no_cache = 0
}
}
}
ACT < .NO
ACT.linkWrap = <li class="active">|</li>
}
}
wrap = <ul>|</ul>
}
.......
lib.language.10.1.NO.stdWrap.override = [us] English || [de] Deutsch
使用上一段默认的 TypoScript 代码来构建语言菜单,在这里我用此处显示的最后一行 TypoScript 覆盖语言标签的显示,前端显示:
[int] English [de] Deutsch
(两行的混合)。
有人知道为什么吗?
添加打字错误行:
lib.language.10.1.ACT.stdWrap.override = [us] English || [de] Deutsch
用你的线,你把NO设置复制到ACT设置后覆盖