【问题标题】:TYPO3 Extbase backend module wrong templateTYPO3 Extbase 后端模块错误的模板
【发布时间】: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


【解决方案1】:

已解决 - 不要忘记在模板配置中包含静态 TS 模板。 感谢迈克尔。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多