小编Gha*_*hel的帖子

在include_typoscript中使用Typoscript常量

我们可以在include_typoscript中使用常量变量吗?

在我的constants.txt文件中

filepaths{
    # cat=FLUIDPAGES/settings; type=text; label=Pfad zu den Templates
    defaultTemplateRootPath = typo3conf/ext/defaulttemplate/
}
Run Code Online (Sandbox Code Playgroud)

在我的setup.txt文件中

Include Page Template
<INCLUDE_TYPOSCRIPT: source="FILE: {$filepaths.defaultTemplateRootPath}fluid.txt">
Run Code Online (Sandbox Code Playgroud)

我只需要在我的安装文件中使用{$ filepaths.defaultTemplateRootPath}来包含typoscript文件,如果是,它对我很有用,我可以在多域网站中添加多个主题/模板.

typo3 typoscript

5
推荐指数
1
解决办法
1823
查看次数

TYPO3 v7.6 extBase后端模块模板路径不能正常工作

我使用extension_builder创建了extBase扩展.一切都很好,但后端模块路径无法正常工作.
- constants.txt

module.my_ext {
    view {
        templateRootPath = EXT:my_ext/Resources/Private/Backend/Templates/
        partialRootPath = EXT:my_ext/Resources/Private/Backend/Partials/
        layoutRootPath = EXT:my_ext/Resources/Private/Backend/Layouts/
    }
}
Run Code Online (Sandbox Code Playgroud)

- setup.txt

module.my_ext {
    view {
        templateRootPath = {$module.my_ext.view.templateRootPath}
        partialRootPath = {$module.my_ext.view.partialRootPath}
        layoutRootPath = {$module.my_ext.view.layoutRootPath}
    }
}
Run Code Online (Sandbox Code Playgroud)

我已经明确了:
- 安装工具缓存
- BE缓存
- 甚至删除了整个typo3temp文件夹

我在我的根模板中包含静态模板

但是,它仍然考虑FE模板视图
请帮助我,我错误的地方或核心问题?
谢谢.

typo3 extbase typo3-7.x

2
推荐指数
1
解决办法
1285
查看次数

标签 统计

typo3 ×2

extbase ×1

typo3-7.x ×1

typoscript ×1