我遇到了extbase/fluid扩展创建的奇怪问题。 我使用TYPO3 6.1TYPO3 Extbase后端模块。模板路径问题
我已经在我的开发服务器(相同的配置/硬件,然后产品)后端模块进行了扩展。该模块工作完美地与路径模板:
myext /资源/个人/后端/模板
myext /资源/个人/后端/布局
myext /资源/个人/后端/局部模板
在此之后,我在ext管理器中下载了我的扩展的zip文件,然后在prod服务器上安装了安装程序。现在我无法使用我的扩展,因为模块找不到模板。 我以相同的方式配置了扩展名。模板处于正确的路径。
我考到我的文件夹移动到上一层:
myext /资源/个人/模板
myext /资源/个人/布局
myext /资源/私有/局部模板
有了这个它可以工作,但在模块配置中,我指定了“Backend /”文件夹的正确路径。
我不会移动我的文件夹在私人文件夹中,我希望它在私人/后端文件夹中运行。
我已将扩展静态模板包含到网站根TS模板中。
这里的常数:
module.tx_myext {
view {
# cat=module.tx_myext/file; type=string; label=Path to template root (BE)
templateRootPath = EXT:wng_myext/Resources/Private/Backend/Templates/
# cat=module.tx_myext/file; type=string; label=Path to template partials (BE)
partialRootPath = EXT:wng_myext/Resources/Private/Backend/Partials/
# cat=module.tx_myext/file; type=string; label=Path to template layouts (BE)
layoutRootPath = EXT:wng_myext/Resources/Private/Backend/Layouts/
}
persistence {
# cat=module.tx_myext//a; type=string; label=Default storage PID
storagePid =
}
}
而这里的设置:
module.tx_myext {
persistence {
storagePid = {$module.tx_myext.persistence.storagePid}
}
view {
templateRootPath = {$module.tx_myext.view.templateRootPath}
partialRootPath = {$module.tx_myext.view.partialRootPath}
layoutRootPath = {$module.tx_myext.view.layoutRootPath}
}
}