silverstripe-module underconstruction
SilverStripe Under Construction Page Module
frankmullenger/underconstruction
SilverStripe Under Construction Page Module
- Thursday, November 29, 2012
- by frankmullenger
- Repository
- 3 Watchers
- 16 Stars
- 1,717 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 10 Forks
- 5 Open issues
- 1 Versions
- 3 % Grown
SilverStripe Under Construction Page Module
Maintainer Contacts
- Frank Mullenger (frankmullenger_AT_gmail(dot)com)
My Blog
Requirements
Documentation
This is essentially just a much, much better version of the holding page module and achieves practically the same thing. This module will create a static HTML error page in the assets folder when it is installed. Then when a non admin user tries to visit the website the error page will be displayed. Once an admin user has logged in they will be able to browse the website at will., (*1)
Additionally, when the under construction page is displayed it responds to the browser with a 503 - Service Unavailable HTTP status code., (*2)
This module could easily be changed to generate any kind of maintenance page and return any kind of HTTP status code., (*3)
I have updated the module so that under construction pages can be turned on or off via the SiteConfig->Access tab for convenience., (*4)
Installation Instructions
- Place this directory in the root of your SilverStripe installation and call it 'underconstruction'.
- Visit yoursite.com/dev/build to rebuild the database and create the under construction page.
- Check that the under construction page was created by looking for an error-503.html page in the /assets folder.
- If you want to update the error page at any time (because your page template has changed perhaps), just delete the error-503.html page in the /assets folder and run /dev/build again to regenerate it.
- If your site is in dev mode then the under construction page will not be shown.
- You will need to go to the SiteConfig->Access tab and tick the checkbox to 'Display an under construction page?'.
You can find this module on Packagist., (*5)
Usage Overview
- Install the module using instructions above.
- When you no longer want to display the under construction page you can either remove this module (by removing the 'underconstruction' directory) or uncheck the relevant checkbox in SiteConfig->Access tab.
dev-master
9999999-dev
SilverStripe Under Construction Page Module
Sources
Download
The Requires
silverstripe
under construction