markocupic / contao-staging-installation-banner
With this extension for Contao CMS, you can display a banner on your staging environment so that there is no confusion with the productive environment during daily work.
Package info
github.com/markocupic/contao-staging-installation-banner
Type:contao-bundle
pkg:composer/markocupic/contao-staging-installation-banner
Requires
- php: ^8.2
- contao/core-bundle: ^5.3 || ^6.0
- symfony/asset: ^6.4 || ^7.0 || ^8.0
- symfony/config: ^6.4 || ^7.0 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.0 || ^8.0
- symfony/event-dispatcher: ^6.4 || ^7.0 || ^8.0
- symfony/http-foundation: ^6.4 || ^7.0 || ^8.0
- symfony/http-kernel: ^6.4 || ^7.0 || ^8.0
- symfony/translation-contracts: ^3.0
- twig/twig: ^3.8
Requires (Dev)
- contao/manager-plugin: ^2.12
- contao/test-case: ^5.3 || ^6.0
Suggests
None
Provides
None
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
Replaces
None
README
Contao Staging Installation Banner
With this extension for Contao CMS, you can display a banner on your staging environment so that there is no confusion with the productive environment during daily work.
Requirements
- PHP ^8.2
- Contao ^5.3 || ^6.0
In order to display the banner in the frontend, it is necessary to integrate a frontend module into the layout.
And in a further step, you need to make a small change in your configuration on the staging environment.
# config/config.yaml
# this has to be done on the staging environment only
markocupic_contao_staging_installation_banner:
is_staging_system: true
backend_banner_translatable_text: '!!! STAGING SYSTEM !!!'
backend_banner_bg_color: '0082C7'
backend_banner_text_color: 'FFFFFF'


