简体   繁体   中英

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

In my constants I have a select dropdown with two options.

In my setup can I change the page.shortcutIcon setting depending on what that constant is set to?

Also, can I use the same constant to determine a setting in PageTSConfig or the rte.yaml config?

Its not possible to use Typoscript Template Constants (frontend).

In PageTS (Backend configuration)

Thr backend does not need and does not evaluate the configuration there.

Why don't you add an additional field to the pages record for your new value?
This value can be evaluated in the PageTS for backend conditions.
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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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