简体   繁体   English

如何根据常数更改 TYPO3 设置中的设置?

[英]How do you change a setting in TYPO3 Setup based on a Constant?

In my constants I have a select dropdown with two options.在我的常量中,我有一个 select 下拉菜单,其中包含两个选项。

In my setup can I change the page.shortcutIcon setting depending on what that constant is set to?在我的设置中,我可以根据常量设置来更改page.shortcutIcon设置吗?

Also, can I use the same constant to determine a setting in PageTSConfig or the rte.yaml config?另外,我可以使用相同的常量来确定 PageTSConfig 或 rte.yaml 配置中的设置吗?

Its not possible to use Typoscript Template Constants (frontend).无法使用 Typoscript 模板常量(前端)。

In PageTS (Backend configuration)在 PageTS 中(后端配置)

Thr backend does not need and does not evaluate the configuration there. Thr 后端不需要也不评估那里的配置。

Why don't you add an additional field to the pages record for your new value?你为什么不为你的新值在pages记录中添加一个额外的字段?
This value can be evaluated in the PageTS for backend conditions.该值可以在 PageTS 中针对后端条件进行评估。
And it could be evaluated in the frontend.它可以在前端进行评估。 either in the regular typoscript setup (use data instead of constants) or in FLUID as field of your pages data.在常规排版设置(使用数据而不是常量)中或在 FLUID 中作为pages数据的字段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM