Contact Contact Show All Awards & Recognition
Contact
Show All Awards & Recognition
Purple Horizon - Pimcore Platform 2023.3 Release, AI/ML Strategies & Inspire 2024 Sneak Peek  Sign Up

basilicom/pimcore-plugin-system-banner

not-reviewed

No Category

No author set

Version

v2.0.1

Last updated

Compatible Pimcore Version

-

Contact

-

No  Reviewer

basilicom/pimcore-plugin-system-banner

No Category

Project Summary

Shows a banner of the pimcore envirment, to indicate if you are on prod or dev or else.


Readme

Pimcore Plugin System Banner

This plugin will show a banner on the top right with the environment name.

  • development environments = green
  • test environments = purple
  • stage environments = yellow
  • prod environments = red

Environment dev

it is used the .env variable APP_ENV.

Version information

Bundle Version PHP Pimcore
< 2.0 ^7.3 ^6.0
>= 2.0 ^8.0 ^10.0

Installation

composer require basilicom/pimcore-plugin-system-banner

Activate Plugin

  • Add to \App\Kernel.php
    public function registerBundlesToCollection(BundleCollection $collection)
    {
    // ...
    $collection->addBundle(new PimcorePluginSystemBannerBundle());
    // ...
    }

or

  • Activate in the Pimcore backend in Tools -> Bundles & Bricks

build assets

for Pimcore X respectively Symfony 5

bin/console assets:install public --symlink --relative

for lower than Pimcore X respectively lower than Symfony 5

bin/console assets:install web --symlink --relative

Add the banner to the frontend

It will only show the banner when a backend user is active.

use the following twig function

{{ renderSystemBanner() | raw }}

Review status

not-reviewed

?>

No author set

Version

v2.0.1

Last updated

Compatible Pimcore Version

-

Contact

-

No  Reviewer