【发布时间】:2013-08-06 09:12:05
【问题描述】:
我刚刚安装了名为blog_example 的示例扩展,但我不明白,当我打开后端模块时,我得到了前端模板(blog_example/Resources/Private/Templates/ Blog/index.html)而不是后端模板(blog_example/Resources/Private/Backend/Templates/Blog/index.html)。 当我在 FE 模板中添加一些文本时,我确实在后端模块中看到了它。
有什么问题吗?很清楚这个示例扩展的安装,我没有改变任何东西。
在 blog_example/Configuration/TypoScript/constants.txt 中是(关于 BE 模块):
module.tx_blogexample {
view {
templateRootPath = EXT:blog_example/Resources/Private/Backend/Templates/
partialRootPath = EXT:blog_example/Resources/Private/Partials/
layoutRootPath = EXT:blog_example/Resources/Private/Backend/Layouts/
}
}
在blog_example/Configuration/TypoScript/setup.txt中是(关于BE模块):
module.tx_blogexample {
settings < plugin.tx_blogexample.settings
persistence < plugin.tx_blogexample.persistence
view < plugin.tx_blogexample.view
view {
templateRootPath = {$module.tx_blogexample.view.templateRootPath}
partialRootPath = {$module.tx_blogexample.view.partialRootPath}
layoutRootPath = {$module.tx_blogexample.view.layoutRootPath}
}
}
我真的很困惑。 谢谢。
【问题讨论】:
-
你是否包含了静态 TS 模板?
-
不,我没有,现在可以了!谢谢你:-)
标签: module path typo3 backend extbase