【发布时间】:2020-05-08 20:55:28
【问题描述】:
我有一个使用 FluidTYPO3 内容元素 (flux 9.0.1) 和提供程序扩展的 TYPO3 (8.7.x) 页面。该页面正在运行,现在我需要更改 TYPO3 子弹 CE 的默认呈现。因此我尝试配置额外的模板/部分/布局路径来覆盖默认的项目符号模板:
lib.contentElement.templateRootPaths.90 = EXT:provider_ext/Resources/Private/Templates/
lib.contentElement.partialRootPaths.90 = EXT:provider_ext/Resources/Private/Partials/
lib.contentElement.layoutRootPaths.90 = EXT:provider_ext/Resources/Private/Layouts/
子弹被成功覆盖。但是在配置附加路径后,我在渲染(现有)标头 CE 时出现异常:
Wed, 22 Jan 2020 16:45:22 +0100 [ALERT] request="db4bb2a9741ea" component="TYPO3.CMS.Frontend.ContentObject.Exception.ProductionExceptionHandler":
Oops, an error occurred! Code: 2020014756452233e33932 -
{"exception":"TYPO3Fluid\\Fluid\\View\\Exception\\InvalidSectionException: Section \"Main\" does not exist.
in \/html\/typo3\/typo3_src-8.7.30\/vendor\/typo3fluid\/fluid\/src\/View\/AbstractTemplateView.php:269
\nStack trace:\n#0 [...]
我做错了什么?
【问题讨论】: