Typo3内容包装而不是<div id =“c8”class =“csc-default”>我自己的div <div id =“c8”class =“col Content”>按内容1 </div> </div>

时间:2014-10-08 07:15:37

标签: typo3

从边框内容区域添加3个不同的内容区域以显示前端。每次此内容将包装<div id="c8" class="csc-default"> aaaa </div><div id="c9" class="csc-default"> aaaa </div> <div id="c10" class="csc-default"> aaaa </div>

简单我希望它在像<div id="c8" class="colContent"> my content 1 </div> <div id="c9" class="colContent"> my content 2 </div> <div id="c10" class="colContent"> my content 3 </div>

这样的东西下变形

<div id="c8" class="csc-default colContent"> my content 1 </div><div id="c9" class="csc-default colContent"> my content 2 </div><div id="c10" class="csc-default colContent"> my content 3 </div>'

如何包装我想要的内容

1 个答案:

答案 0 :(得分:0)

我不确定那是不是你要找的东西,但你有没有试过这样的东西?

# Append another wrap to the content elements
tt_content.stdWrap.innerWrap.cObject.default.20.40 = CASE
tt_content.stdWrap.innerWrap.cObject.default.20.40 {
  key.field = colPos

  # If nothing other colPos case is set below
  default = TEXT
  default.value = colDefault
  default.noTrimWrap = | ||

  # 10 is in this case the colPos 10 set in the BackendLayout or else
  10 < .default
  10.value = colContent_1

  # 11 is in this case the colPos 10 set in the BackendLayout or else
  11 < .default
  11.value = colContent_2
}