Download the PHP package dljoseph/silverstripe-custom-error-page without Composer
On this page you can find all versions of the php package dljoseph/silverstripe-custom-error-page. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dljoseph/silverstripe-custom-error-page
More information about dljoseph/silverstripe-custom-error-page
Files in dljoseph/silverstripe-custom-error-page
Package silverstripe-custom-error-page
Short Description SilverStripe Custom Error Page Module. Select any template to use as a custom error page.
License BSD-3-Clause
Homepage http://github.com/dljoseph/silverstripe-custom-error-page
Informations about the package silverstripe-custom-error-page
SilverStripe Custom Error Page Module
Custom Error Page Module for SilverStripe. Select which template to use as a custom 404 or other error page type.
Maintainer Contacts
- DL Joseph (
<darrenleejoseph (at) gmail (dot) com>
)
Requirements
- SilverStripe 3.1.x, 3.2+
Installation Instructions
Installation can be done either by composer or by manually downloading a release.
Via composer
composer require "dljoseph/silverstripe-custom-error-page:*"
Manually
- Download the module from the releases page.
- Extract the file (if you are on windows try 7-zip for extracting tar.gz files
- Make sure the folder after being extracted is named 'custom-error-page'
- Place this directory in your sites root directory. This is the one with framework and cms in it.
- Visit
<yoursite.com>/dev/build/?flush
to rebuild the database.
Usage Overview
Once installed, the SilverStripe ErrorPage will be augmented with an additional field to allow the administrator to select which template to use for the error page.
Be sure to add the following line to your Page_Controller
class in
mysite/code/Page.php
to allow template overrides:
`public $templates; //required for template overrides`
Templating
If you wish to use a different template for the ErrorPage, simply create a new
SilverStripe template file, be sure to place it directly in the templates folder (above Layouts) and visit
Known Issues
There are no known issues.