SilverStripe Custom Error Page Module. Select any template to use as a custom error page.
Custom Error Page Module for SilverStripe. Select which template to use
as a custom 404 or other error page type.
<darrenleejoseph (at) gmail (dot) com>
)Installation can be done either by composer or by manually downloading a release.
composer require "dljoseph/silverstripe-custom-error-page:*"
<yoursite.com>/dev/build/?flush
to rebuild the database.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`
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 /?flush to flush the template cache.
Afterwards, you must go to the ErrorPage in the CMS and manually select the
template from the dropdown to tell SilverStripe which template to use to render the ErrorPage for display.
There are no known issues.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem