管理层次结构/强制 TS 模板的优先级 [英] Manage hierarchy / enforce priority of TS-templates

查看:21
本文介绍了管理层次结构/强制 TS 模板的优先级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,实际上还有另一个 完全相同的人问题.但是直到今天,他们都没有想出解决方案,这就是我再次询问的原因.

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:

  1. 系统:TYPO3_CONF_VARS:FE:defaultTypoScript
  2. EXT:fluid_styled_content/Configuration/TypoScript/...

...一堆其他第三方扩展...

... a bunch of other third party extensions ...

  1. EXT:indexed_search/Configuration/TypoScript
  2. EXT:templates_ext/Resources/Private/TypoScript
  3. 扩展库
  4. 流体
  5. 扩展管理器
  6. 登录
  7. 用户
  8. 登录
  9. indexed_search
  10. 系统注释
  11. 真实网址

所以 #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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆