user500665
user500665

Reputation: 1362

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?

Upvotes: 0

Views: 274

Answers (2)

Bernd Wilke πφ
Bernd Wilke πφ

Reputation: 10791

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 pagesdata.

Upvotes: 1

Wolffc
Wolffc

Reputation: 1250

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.

Upvotes: 1

Related Questions