我想在
DatabaseQueryProcessor
中获取 setup.typescript
的根页面 ID。我想我应该按SiteProcessor
来做,但我还没有了解处理器。
所以我不知道为什么那不起作用:
41 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
41 {
table = tt_content
pidInList = TYPO3\CMS\Frontend\DataProcessing\SiteProcessor.rootPageId
where = colPos = 2
as = default-header-image
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 {
references.fieldName = image
}
}
}
也许需要注意。该片段位于 FLUIDTEMPLATE 的
dataProcessing
部分,该部分位于页面(“page.FLUIDTEMPLATE.dataProcessing.41
”)上。
你对我有什么提示或解决方案吗?
谢谢你的时间:-)
pidInList 需要一个页面 ID 列表,或者可以用 stdWrap 处理: https://docs.typo3.org/m/typo3/reference-typoscript/11.5/en-us/Functions/Select.html#pidinlist
stdWrap 本身提供数据功能。它本身提供对站点配置的访问: https://docs.typo3.org/m/typo3/reference-typoscript/11.5/en-us/Functions/Data.html#site
所以类似的东西应该有效:
41.pidInList.data = site:rootPageId