carstenwindler/context_banner

This package is abandoned and no longer maintained. No replacement package was suggested.

Adds a small Banner in both FE and BE and changes title tag to easier distinct development, testing and production context

Installs: 902

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

2.0.3 2019-03-17 21:46 UTC

This package is auto-updated.

Last update: 2023-09-19 19:59:40 UTC


README

Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage

context_banner for Typo3

Ever been in the wrong browser tab and accidentally made changes on Production, and not your local dev? Then this extension could be useful for you.

It displays a small banner in Frontend and Backend to better show the current application context (Development - Green, Testing - Yellow, Production - Read), so you can easily see if you are in the right Typo3 backend.

Installation

Just activate the extension in the Extension Manager.

Options

The following options can be configured:

  • pageTitleTemplate - Simple templating for the page title
  • bannerTemplate - Simple templating for the banner text
  • bannerStyle - Whether to use automatically styling by Application context or custom
  • bannerCssCustom - CSS to be used for custom banner style
  • bannerCssDevelopment - CSS to be used for Development banner style
  • bannerCssTesting - CSS to be used for Testing banner style
  • bannerCssProduction - CSS to be used for Production banner style
  • showBannerOnProduction - whether the banner should be shown in the frontend for

TODO

  • Use middleware for Typo3 v9

Testing

To run the test:

.Build/vendor/bin/phpunit -c Tests/Build/UnitTests.xml

Code Sniffer

.Build/vendor/bin/phpcs --standard=PSR2 Classes