AdminDevModeColors by BitPoet

Enable distinct color scheme for development installs of PW

AdminDevModeColors

Distinguish the backend for ProcessWire development instances with different colors

Status


beta

Compatibility


This module is compatible with ProcessWire 3.0

Description


The module changes the color of the top toolbar and adds a unique text next to / instead of the ProcessWire logo there (depending on the screen size) so you can easily dinstinguish your development installations from the production systems.

You can enable development mode by either

  • enabling the option in the module settings
  • setting $config->devMode = true; in site/config.php

I suggest to use the site/config.php option since this file usually needs to be adapted for development systems and you are less likely to accidentally ship your changes to the production system this way, unlike the module settings option.

Change color settings and text

The colors used for the background of the menu bar, the textual indicator and its foreground color can be set in the module's configuration.

Override settings in config.php

You can override any settings for background, foreground and dev string present in the module configuration with entries in config.php.

The properties are:

  • $config->devModeBgColor
  • $config->devModeFgColor
  • $config->devModeDevString

Admin Theme Support


The module supports the following admin themes:

  • Default
  • Reno
  • Uikit

Credits


Inspiration

The module was inspired by a post in the ProcessWire support forum by benbyf.

Color Picker

The module includes the color picker from tovic which is licensed under the same terms.

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #559
    The 559th issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!
    Weekly.pw / 25 January 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull