TYPO3 8.7 can not override Fluid Styled Content templates

只愿长相守 提交于 2019-12-21 04:42:17

问题


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

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

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

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

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

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?


回答1:


The TypoScript lib has changed see Overriding the FLUID templates

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



来源:https://stackoverflow.com/questions/44217102/typo3-8-7-can-not-override-fluid-styled-content-templates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!