我参加了一个基于TYPO3 6.2.0的项目
我需要自定义一些扩展(模板),并且我直接在原始模板文件中进行了此更改。
我只是想知道什么是自定义TYPO3扩展的标准和正确(更新安全)方式?
提前致谢!
答案 0 :(得分:2)
您可以查看扩展程序的typoscript模板(通常是setup.ts或setup.txt)。
在较新的扩展程序中,您会找到类似
的内容 plugin.tx_bla {
view {
templateRootPaths.0 = EXT:bla/Resources/Private/Templates/
templateRootPaths.1 = {$plugin.tx_bla.view.templateRootPath}
partialRootPaths.0 = EXT:bla/Resources/Private/Partials/
partialRootPaths.1 = {$plugin.tx_bla.view.partialRootPath}
layoutRootPaths.0 = EXT:bla/Resources/Private/Layouts/
layoutRootPaths.1 = {$plugin.tx_bla.view.layoutRootPath}
然后将模板文件复制到配置扩展名或fileadmin,并在常量(对于.1)或直接在设置中调整路径。在那之后清除系统缓存。
在较旧的扩展中,这可能看起来同样如此:
plugin.tx_bla {
view {
templateRootPath =
partialRootPath =
layoutRootPath =