Configure Environment Indicator 6.x-1.x & 7.x-1.x
Last updated on
30 April 2025
The Environment Indicator settings page allows you to modify some elements of the indicator's behaviour and appearance. Individual settings, such as the text to display and the colour can be overridden for each of your specific environments in the site's settings.php file. This allows you to customise the indicator for each of your environments without needing to make any changes in the database. This means that the Environment Indicator will always display correctly when moving your site from development to staging to production.
Examples of how to override settings in settings.php:
- environment_indicator_text
- The text that will be displayed vertically down the indicator. e.g:
$conf['environment_indicator_text'] = 'DEVELOPMENT SERVER'; - environment_indicator_color
- A valid css color. e.g:
$conf['environment_indicator_color'] = 'darkred'; - environment_indicator_enabled
- A boolean value indicating whether the Environment Indicator should be enabled or not. On your production environment, you should probably set this to FALSE. e.g:
$conf['environment_indicator_enabled'] = FALSE;
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
