覆盖扩展模板的最佳方法

Fel*_*lix 0 typo3 typo3-7.6.x

覆盖typo3扩展标准模板的最佳方法是什么,以便保存更新?

谢谢

试过这个:

plugin.tx_news {
        view {
                templateRootPath = fileadmin/webdesign/templates/news/Templates/
                partialRootPath = fileadmin/webdesign/templates/news/Partials/
                layoutRootPath = fileadmin/webdesign/templates/news/Layouts/
        }
}
Run Code Online (Sandbox Code Playgroud)

但一切都没有改变

bsc*_*uer 5

以下是tx_news文档中的示例:

TypoScript Setup语法如下所示:

plugin.tx_news {
        view {
                templateRootPaths {
                        0 = EXT:news/Resources/Private/Templates/
                        1 = EXT:fileadmin/templates/ext/news/Templates/
                }
                partialRootPaths {
                        0 = EXT:news/Resources/Private/Partials/
                        1 = fileadmin/templates/ext/news/Partials/
                }
                layoutRootPaths {
                        0 = EXT:news/Resources/Private/Layouts/
                        1 = fileadmin/templates/ext/news/Layouts/
                }
        }
}
Run Code Online (Sandbox Code Playgroud)

Doc tx_news:

https://docs.typo3.org/typo3cms/extensions/news/3.0.0/Main/Templating/Start/Index.html

typo3 Doc:

https://docs.typo3.org/typo3cms/extensions/fluid_styled_content/7.6/Configuration/OverridingFluidTemplates/Index.html

这里是另一个来自slickcarousel的例子:

https://gist.github.com/misterboe/5de7498e810ebd57f7bfb4d2a7abeb66