TYPO3 8.7 无法覆盖 Fluid Styled Content 模板 [英] TYPO3 8.7 can not override Fluid Styled Content templates

查看:52
本文介绍了TYPO3 8.7 无法覆盖 Fluid Styled Content 模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试覆盖 Fluid Styled Content 元素,但它在最新的 TYPO3 8.7.0 版中根本不起作用.

I've tried to override the Fluid Styled Content elements but it doesn't work at all in latest TYPO3 version 8.7.0.

我有一个模板扩展(键:biv_main),我在其中添加了我的覆盖模板路径:

I've got a template extension (key: biv_main) in which I add my overriding template pathes:

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/
        }
    }
}

后端中的 TypoScript 通过 TS 对象浏览器在我看来是正确的:截图 TypoScript 对象浏览器 - lib.fluidcontent

The TypoScript in the Backend via TS Object Browser looks correct to me: Screenshot TypoScript object browser - lib.fluidcontent

我已经从 sysext fluid_styled_content 复制了整个模板、部分和布局文件夹以及其中的每个文件,因此每个内容元素都应该被覆盖.

I have copied the whole template, partial and layout folder with every file in it from sysext fluid_styled_content, so that every content element should be overridden.

这是我在模板扩展中的文件夹结构:

This is my folder structure in the template extension:

biv_main
-- Resources
  -- Private
    -- Content
      -- fluid_styled_content 
        -- Layouts
        -- Partials 
        -- Templates

文件夹中的文件与 sys-ext fluid_styled_content/Resources/Private/中的文件完全相同

In the folders are exactly the same files as in sys-ext fluid_styled_content/Resources/Private/

流体内容元素的静态排版模板在模板扩展 biv_main 之前加载.

The static typoscript template for Fluid Content Elements are loaded before the template extension biv_main.

您是否有任何想法或线索缺少什么以及为什么它不起作用?

Do you have any ideas or a clue what's missing and why it's not working?

推荐答案

TypoScript 库已更改,请参阅覆盖 FLUID 模板

The TypoScript lib has changed see Overriding the FLUID templates

所以你需要覆盖 lib.contentElement 而不是 lib.fluidContent

So you need to override lib.contentElement instead of lib.fluidContent

这篇关于TYPO3 8.7 无法覆盖 Fluid Styled Content 模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆