undkonsorten / typo3-site-config-modifier
Adds the new TypoScript modifier := getSiteConfig() for TYPO3
Installs: 85
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- typo3/cms-core: ^9.5
This package is auto-updated.
Last update: 2024-09-07 07:10:01 UTC
README
This extension provides a new value modifier := getSiteConfig()
for
TypoScript syntax that reads configuration values from the site configuration
into TypoScript values.
Installation
Composer
composer require undkonsorten/typo3-site-config-modifier
Git
# cd to typo3conf/ext
git clone https://github.com/undkonsorten/typo3-site-config-modifier.git site_config_modifier
Usage
Can be used in constants, setup and TSConfig (suggested usage in constants):
myConstant = defaultValue
# myConstant will be overridden if env var is defined at all.
# Empty env vars will override, too!
myConstant := getSiteConfig(mykey)