管理层次结构/强制 TS 模板的优先级 [英] Manage hierarchy / enforce priority of TS-templates
问题描述
好吧,实际上还有另一个 完全相同的人问题.但是直到今天,他们都没有想出解决方案,这就是我再次询问的原因.
Well, there is actually another guy with exact the same problem. But until today, they didn't come up with a solution, that's why I'm asking it once again.
我的整个 TS 包含在 TYPO3 7.6.8
中的扩展中.除了 indexed_search
之外,这很好用.我的资源 EXT 中的 TS 被 indexed_search 默认 TS 覆盖.
My entire TS is included by an extension in TYPO3 7.6.8
. This works fine except with indexed_search
. The TS inside my resources EXT get overwritten by the indexed_search default TS.
这是模板分析器中 TS 的顺序:
This is the order of the TS inside the Template-Analyzer:
- 系统:TYPO3_CONF_VARS:FE:defaultTypoScript
- EXT:fluid_styled_content/Configuration/TypoScript/...
...一堆其他第三方扩展...
... a bunch of other third party extensions ...
- EXT:indexed_search/Configuration/TypoScript
- EXT:templates_ext/Resources/Private/TypoScript
- 扩展库
- 流体
- 扩展管理器
- 登录
- 用户
- 登录
- indexed_search
- 系统注释
- 真实网址
所以 #7 是包含我所有 TS 的扩展,但它被 #14 覆盖.配置 indexed_search
的唯一方法是在页面模板的设置中(在上述所有内容之后).但我想避免这种情况以保持清洁.
So #7 is the extension which includes all my TS but it gets overwritten by #14. The only way to configure the indexed_search
is inside the setup of the page template (which comes after all those above). But I want to avoid that to keep things clean.
有没有办法对某个 TS 进行优先级排序,使其不会被覆盖?
推荐答案
打开 TypoScript 记录,切换到包含"选项卡,在底部您将找到字段 来自 TYPO3 扩展的静态模板文件:强>.选择值Include before all static templates if root flag is set
.
Open the TypoScript record, switch to the tab "Includes", at the bottom you will find the field Static Template Files from TYPO3 Extensions:. Select the value Include before all static templates if root flag is set
.
这篇关于管理层次结构/强制 TS 模板的优先级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!