我需要覆盖htdocs / typo3 / sysext / filelist / Resources / Private / Templates / FileList下的模板文件特别是htdocs / typo3 / sysext / filelist / Resources / Private / Templates / FileList / Search.html
我创建了复制并修改文件:myextension / Resources / Private / Extensions / sysext / filelist / Resources / Templates / Search.html
Typo3 8阅读以下信息:https://docs.typo3.org/typo3cms/ExtbaseFluidBook/10-Outlook/2-Backend-modules.html
这是我试过的:
module.file_FilelistList {
view {
templateRootPaths {
100 = EXT:myextension/Resources/Private/Extensions/sysext/filelist/Resources/Templates/
}
}
}
module.FilelistList {
view {
templateRootPaths {
100 = EXT:myextension/Resources/Private/Extensions/sysext/filelist/Resources/Templates/
}
}
}
module.filelist {
view {
templateRootPaths {
100 = EXT:myextension/Resources/Private/Extensions/sysext/filelist/Resources/Templates/
}
}
}
并且
module.tx_file_FilelistList {
view {
templateRootPaths {
100 = EXT:myextension/Resources/Private/Extensions/sysext/filelist/Resources/Templates
}
}
}
module.tx_FilelistList {
view {
templateRootPaths {
100 = EXT:myextension/Resources/Private/Extensions/sysext/filelist/Resources/Templates
}
}
}
module.tx_filelist {
view {
templateRootPaths {
100 = EXT:myextension/Resources/Private/Extensions/sysext/filelist/Resources/Templates
}
}
}
但是没有用,请帮忙
永远不要从核心或外部扩展更改任何文件。
您将失去定期更新的选项。
您可以构建自己的这些文件版本,并在typoscript中添加这些文件的路径,以便您的文件优先于默认文件。
您只需要确定添加路径的设置即可。