TYPO3 - 如何覆盖后端核心扩展中的模板路径? (文件列表)

问题描述 投票:0回答:1

我需要覆盖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
        }
    }
}

但是没有用,请帮忙

typo3 core overwrite typo3-8.x filelist
1个回答
0
投票

永远不要从核心或外部扩展更改任何文件。

您将失去定期更新的选项。

您可以构建自己的这些文件版本,并在typoscript中添加这些文件的路径,以便您的文件优先于默认文件。

您只需要确定添加路径的设置即可。

© www.soinside.com 2019 - 2024. All rights reserved.