我将我的TYPO3从7.6升级到8.6。 现在我不能通过style.content.get设置变量,我的根模板会加载fluid_styled_content。 一些来源:TYPO3流体变量
page.10 = FLUIDTEMPLATE
page.10 {
partialRootPath ={$resDir}/Private/Partials
layoutRootPath = {$resDir}/Private/Layouts
variables {
contentMain < styles.content.get
contentMain.select.where = colPos = 0
contentnew < styles.content.get
contentnew.select.where = colPos = 1
contentkat < styles.content.get
contentkat.select.where = colPos = 2
test = TEXT
test.value = loool
}
}
显示变量:
<f:format.raw> {contentMain} </f:format.raw>
<f:format.raw> {contentnew} </f:format.raw>
<f:format.raw> {contentkat} </f:format.raw>
<f:format.raw> {test} </f:format.raw>
如果有人帮助你解答,请他将评论置于答案中,并接受和/或赞成,建议删除你自己的答案,在我的解决方案中你的决定 – Gang
我建议使用'temp.content。 get',因为所有以'temp.'开始的TS对象在执行渲染之前被移除,导致更小的配置数组。特别是对于复制的原型,在渲染时不需要知道。 –