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: 2025-05-20 13:49:18 UTC


README

Important

This extension is not maintained anymore. Please do not use it unless you know what you‘re doing.

It has been superseded by

Please consider using either of those instead!

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)