New Classes for WBCE CMS,  1.4.1
Documentation for all new Classes in WBCE CMS
Maintainance Mode for WBCE CMS.

Table of Contents

More or less detailed documentation about the maintainance mode and its templates.

From WBCE CMS 1.1.x on there is a maintainance mode that can be used to imediately shut down the whole page.

This is usefull if suddenly and technical or leagal issues need to be solved before its save to go back online again. When Page is shut dowm a special template is shown that the page is under maintainance and will be online soon.

Only users in group admin still are able to browse the pages, so you possibly need to change your user before you actually can see the maintainance mode.

Activating/deactivating maintainance mode

There are two ways activating the maintainance mode first is by using the "Maintainance Mode" admin tool the second is by setting a constant.

Using the admin tool

The admin tool is installed by default so simply navigate to the admin tool section of your backend and select the Maintainance Mode tool. It has only one checkbox so check/uncheck and save that's it.

Back Up

Using a system constant.

Add a line to the config.php in the /config/ folder(in older versions of WBCE config.php is in the root directory)

define('WB_MAINTAINANCE_MODE', true);

You can deactivate it by either deleting the line or by setting the mode to false.

Setting maintainance mode via config.php completely overrides the admin tool.

Back Up

Templates for maintainance mode

The maintainance mode now uses a template instead of some PHP/HTML mix that was used before to display the maintainance message when there where no pages.

Back Up

Default template

The default template for maintainance mode can be found in


Back Up

Custom Template

From now on its possible for templates to overwrite system templates so if a template holds alternative definitions for the maintainance mode template they will be used instead of the default ones.

Any template can have a custom maintainance template placed in /templates/yourtemplate/system/maintainance.tpl.php

At this time the maintainance mode is limited to only use the default template set in website options in the backend.

Add a maintainance mode switch to the BE for easy and quick toggle.

Back Up