【问题标题】:Override TYPO3 standard template paths with a FluidTYPO3 driven page?用 FluidTYPO3 驱动的页面覆盖 TYPO3 标准模板路径?
【发布时间】: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 [...]

我做错了什么?

【问题讨论】:

    标签: typo3 typo3-8.x


    【解决方案1】:

    您似乎引用了没有此部分的部分“主要”部分。或者您的布局尝试从模板中呈现“主要”部分。

    你会像这样添加部分

    <f:section name="Main">
      ...
    </f:section>
    

    【讨论】:

    • 我只是想知道添加路径后标准的流体样式内容元素不再起作用。但现在很清楚:这导致使用了错误的布局。非常感谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-08-21
    • 1970-01-01
    • 1970-01-01
    • 2016-10-17
    • 2014-09-27
    • 2023-03-10
    • 1970-01-01
    相关资源
    最近更新 更多