[英]Split HMENU-Text in Typo3
i've configured typo3 to enable a multi-line navigation title. 我已经配置typo3以启用多行导航标题。 So if there is a linebreak there should be also a linebreak in the menu-link.
因此,如果有换行符,则菜单链接中也应有换行符。
I'm splitting the Text with the following code 我用以下代码拆分文本
30 = COA
30.10 = TEXT
30.10 {
field = {nav_title//title}
listNum = 0
listNum.splitChar = 13
}
30.20 < .30.10
30.20.listNum = 1
30.20.wrap = <br />|
30.20.required = 1
My Menu-Creation basicily the following 我的菜单创建基本上如下
1 = TMENU
1.expAll = 1
1.NO {
doNotLinkIt = 1
stdWrap.override.cObject =TEXT
stdWrap.override.cObject {
typolink.parameter.field = uid
if.isTrue.numRows {
table = tt_content
select {
pidInList.field = uid
where = colPos = 0
}
}
}
}
The stdWrap.override
-Block disables clickable links if the page if there is no content for the page. 如果该页面没有内容,则
stdWrap.override
-Block禁用stdWrap.override
面上的可点击链接。
Now to my question: It feels that i'm too dumb to merge those parts - How is it done the right way? 现在我的问题是:感觉我太笨了,无法合并这些部分-怎么做才是正确的方法?
Guessing, untested: 猜测,未经测试:
1 = TMENU
1.expAll = 1
1.NO {
doNotLinkIt = 1
stdWrap.override.cObject = COA
stdWrap.override.cObject {
10 = TEXT
10 {
field = {nav_title//title}
listNum = 0
listNum.splitChar = 13
}
20 < .30.10
20 {
listNum = 1
wrap = <br />|
required = 1
}
typolink.parameter.field = uid
if.isTrue.numRows {
table = tt_content
select {
pidInList.field = uid
where = colPos = 0
}
}
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.