undkonsorten/typo3-site-config-modifier

Adds the new TypoScript modifier := getSiteConfig() for TYPO3

0.0.2 2020-10-06 22:38 UTC

This package is auto-updated.

Last update: 2024-12-07 07:44:38 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)