2017 © Pedro Peláez
 

silverstripe-module silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

image

thisisbd/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  • Friday, December 22, 2017
  • by dljoseph
  • Repository
  • 4 Watchers
  • 18 Stars
  • 8,072 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 6 Open issues
  • 11 Versions
  • 6 % Grown

The README.md

SilverStripe Maintenance Mode Module

Maintainance/Offline Mode Module for SilverStripe. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site., (*1)

Maintainer Contacts

  • Dynamic <dev (at) dynamicagency (dot) com>

Requirements

This branch will aim for compatibility with SilverStripe 4.x., (*2)

For SilverStripe 3.x, please see the compatible branch., (*3)

Installation Instructions

Installation can be done either by composer or by manually downloading a release., (*4)

Via composer

composer require "dljoseph/silverstripe-maintenance-mode:*", (*5)

Manually

  1. Download the module from the releases page.
  2. Extract the file (if you are on windows try 7-zip for extracting tar.gz files
  3. Make sure the folder after being extracted is named 'maintenance-mode'
  4. Place this directory in your sites root directory. This is the one with framework and cms in it.
  5. Visit <yoursite.com>/dev/build/?flush to rebuild the database.

Usage Overview

A "Maintenance Mode" checkbox will be added to the SiteConfig Access settings; from there you can activate maintenance mode to take the site offline - and a new Utility Page will be added to the SiteTree in the Pages section of the CMS. You can edit the content of the Utility Page and/or manually override which theme template SilverStripe uses to render the page for display., (*6)

Templating

To override the default UtilityPage template, add a template called UtilityPage.ss in the templates folder of your theme (above Layouts) and then flush the template cache., (*7)

If you wish to use a different template for the UtilityPage, there are no restrictions, simply create a new SilverStripe template file, be sure to place it directly in the templates folder (above Layouts) and visit /?flush to flush the template cache. Afterwards, you must go to the UtilityPage in the CMS and select the manually select the template from the dropdown to tell SilverStripe which template to use to render the page for display., (*8)

Redirecting vs. Displaying at any URL

By default, the current functionality is to redirect users to a separate URL which you can configure within the CMS (e.g. /offline/), however it may be useful for you to simply display the maintenance message at any URL that the user may visit (to ensure user does not lose the page that they're currently at, in case maintenance window is very short)., (*9)

To disable redirects, drop the following lines into your site's config.yaml file:, (*10)

UtilityPage:
  DisableRedirect: true

Command Line

You can toggle maintenance mode either on or off via the command line easily by simply running the MaintenanceMode task. For example:, (*11)

# Via Sake:
sake dev/tasks/MaintenanceMode on

# Via the CLI script directly:
php framework/cli-script.php dev/tasks/MaintenanceMode on

Allowing specific IP addresses

You can configure the module to also allow specific IP addresses pass the maintenance page. To add IP's add the following lines into your site's config.yaml file:, (*12)

Page_Controller:
  allowed_ips:
    - '127.0.0.1'
    - '::1'

The Versions

22/12 2017

dev-master

9999999-dev http://github.com/dljoseph/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  Sources   Download

BSD-3-Clause

The Requires

 

by Darren-Lee Joseph
by Myles Beardsmore
by Patrick Nelson

silverstripe landing page maintenance mode under construction coming soon utility page offline page

22/12 2017

v2.0.0-beta.1

2.0.0.0-beta1 http://github.com/dljoseph/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  Sources   Download

BSD-3-Clause

The Requires

 

by Darren-Lee Joseph
by Myles Beardsmore
by Patrick Nelson

silverstripe landing page maintenance mode under construction coming soon utility page offline page

31/10 2017

2.0.x-dev

2.0.9999999.9999999-dev http://github.com/dljoseph/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  Sources   Download

BSD-3-Clause

The Requires

 

by Darren-Lee Joseph
by Myles Beardsmore
by Patrick Nelson

silverstripe landing page maintenance mode under construction coming soon utility page offline page

01/02 2017

1.0.x-dev

1.0.9999999.9999999-dev http://github.com/dljoseph/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  Sources   Download

BSD-3-Clause

The Requires

 

by Darren-Lee Joseph
by Myles Beardsmore
by Patrick Nelson

silverstripe landing page maintenance mode under construction coming soon utility page offline page

21/07 2016

v1.0.5

1.0.5.0 http://github.com/dljoseph/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  Sources   Download

BSD-3-Clause

The Requires

 

by Darren-Lee Joseph
by Myles Beardsmore
by Patrick Nelson

silverstripe landing page maintenance mode under construction coming soon utility page offline page

18/07 2016

v1.0.4

1.0.4.0 http://github.com/thisisbd/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  Sources   Download

BSD-3-Clause

The Requires

 

by Darren-Lee Joseph
by Myles Beardsmore
by Patrick Nelson

silverstripe landing page maintenance mode under construction coming soon utility page offline page

17/10 2015

dev-develop

dev-develop http://github.com/thisisbd/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  Sources   Download

BSD-3-Clause

The Requires

 

by Darren-Lee Joseph
by Myles Beardsmore
by Patrick Nelson

silverstripe landing page maintenance mode under construction coming soon utility page offline page

17/10 2015

v1.0.3

1.0.3.0 http://github.com/thisisbd/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  Sources   Download

BSD-3-Clause

The Requires

 

by Darren-Lee Joseph
by Myles Beardsmore
by Patrick Nelson

silverstripe landing page maintenance mode under construction coming soon utility page offline page

16/10 2015

v1.0.2

1.0.2.0 http://github.com/thisisbd/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  Sources   Download

BSD-3-Clause

The Requires

 

by Darren-Lee Joseph
by Myles Beardsmore
by Patrick Nelson

silverstripe landing page maintenance mode under construction coming soon utility page offline page

15/10 2015

v1.0.1

1.0.1.0 http://github.com/thisisbd/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  Sources   Download

BSD-3-Clause

The Requires

 

by Darren-Lee Joseph
by Myles Beardsmore
by Patrick Nelson

silverstripe landing page maintenance mode under construction coming soon utility page offline page

15/10 2015

v1.0.0

1.0.0.0 http://github.com/thisisbd/silverstripe-maintenance-mode

SilverStripe Maintenance Mode Module. Allows an administrator to put site in offline mode with 503 status to display a 'Coming Soon', 'Under Construction' or 'Down for Maintenance' Page to regular visitors, whilst allowing a logged in admin user to browse and make changes to the site.

  Sources   Download

BSD-3-Clause

The Requires

 

by Darren-Lee Joseph
by Myles Beardsmore
by Patrick Nelson

silverstripe landing page maintenance mode under construction coming soon utility page offline page