我曾尝试覆盖Fluid样式的内容元素,但在最新的TYPO3版本8.7.0中根本不起作用。
我有一个模板扩展(键: biv_main),我在其中添加了覆盖模板路径:
lib {
fluidContent {
templateRootPaths {
30 = EXT:biv_main/Resources/Private/Content/fluid_styled_content/Templates/
}
partialRootPaths {
30 = EXT:biv_main/Resources/Private/Content/fluid_styled_content/Partials/
}
layoutRootPaths {
30 = EXT:biv_main/Resources/Private/Content/fluid_styled_content/Layouts/
}
}
}通过TS对象浏览器在后端的TypoScript在我看来是正确的:Screenshot TypoScript object browser - lib.fluidcontent
我已经从sysext fluid_styled_content复制了整个模板、局部和布局文件夹以及其中的每个文件,所以每个内容元素都应该被覆盖。
这是我在模板扩展中的文件夹结构:
biv_main
-- Resources
-- Private
-- Content
-- fluid_styled_content
-- Layouts
-- Partials
-- Templates文件夹中的文件与sys-ext fluid_styled_content/Resources/Private/中的文件完全相同
流体内容元素的静态typoscript模板在模板扩展biv_main之前加载。
您是否有任何想法或线索,缺少了什么,为什么它不工作?
发布于 2017-05-28 17:30:09
TypoScript库已更改请参阅Overriding the FLUID templates
因此,您需要覆盖lib.contentElement而不是lib.fluidContent
https://stackoverflow.com/questions/44217102
复制相似问题