Usage
Setting settings - Admin UI
When the plugins have been activated, a new tab will appear under Settings.
Here you can add and update parameters. Values are saved as strings.
If you wish to use your parameters on a different site you can use import and export settings options.
Getting settings - in PHP code
To access your settings parameters from your own theme in PHP, you can use the static function getValue()
.
example.php
Getting settings - in Twig
If you wish to access your parameters in Twig you first need to register a custom twig function to use. If you're using either everyware-eu-resources or us-resources we add the following twig function for you.
example.twig
Last updated