本文介绍了TYPO3 v7.6 extBase后端模块模板路径不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用extension_builder创建了extBase扩展.一切都很好,但是后端模块路径不起作用.
- constants.txt

I have created extBase extension using extension_builder. Everything is fine but backend module path not working.
- 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/
    }
}

- setup.txt

-setup.txt

module.my_ext {
    view {
        templateRootPath = {$module.my_ext.view.templateRootPath}
        partialRootPath = {$module.my_ext.view.partialRootPath}
        layoutRootPath = {$module.my_ext.view.layoutRootPath}
    }
}

我很清楚:
-安装工具缓存
-是缓存
-甚至删除了整个typo3temp文件夹

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

但是,它仍然考虑FE模板视图
请帮助我,我在哪里弄错了或者是核心问题?
谢谢.

I have clear:
- Install tool cache
- BE cache
- Even removed entire typo3temp folder

I have included static template in my root template

But, it still consider FE template view
Please assist me, where I did mistake or is it core issue?
Thank you.

推荐答案

我在这里找到了解决方案 issue# 66306 谢谢 Henri Nathanson

I have found solution from here issue#66306 Thank you Henri Nathanson

在v7x版本中

templateRootPath = EXT:my_ext/资源/私有/后端/模板/

templateRootPath = EXT:my_ext/Resources/Private/Backend/Templates/

不起作用,因为Extbase现在不可用

will not work, because Extbase does not now about

了.而是使用默认的Extbase-Folder-Configuration.

anymore. The default Extbase-Folder-Configuration is used instead. This is the same for

因为这不是数组值.

所以起作用的是:

module.my_ext {
    view {
        templateRootPaths.0 = {$module.my_ext.view.templateRootPath}
        partialRootPaths.0 = {$module.my_ext.view.partialRootPath}
        layoutRootPaths.0 = {$module.my_ext.view.layoutRootPath}
    }
}

也许有一种方法可以确定当前系统可以理解哪种形式的变量,然后使用该变量.

Perhaps there is a way to determine, which form of variables the current systems understands and then use such variable.

这篇关于TYPO3 v7.6 extBase后端模块模板路径不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 22:55