Skip to content

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

Notifications You must be signed in to change notification settings

undkonsorten/typo3-site-config-modifier

Repository files navigation

TYPO3 extension site_config_modifier

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)

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages