0

我已经配置了typo3 以启用多行导航标题。因此,如果有换行符,菜单链接中也应该有换行符。

我用以下代码分割文本

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

我的菜单创建基本上如下

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

如果stdWrap.override页面没有内容,则 -Block 禁用可点击链接。

现在我的问题是:感觉我太笨了,无法合并这些部分 - 它是如何以正确的方式完成的?

4

1 回答 1

1

猜测,未经测试:

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
    }
   }
  } 
 }
于 2013-08-01T07:10:59.380 回答