SilverStripe error pages, just without the pages.
CMS-editable error pages (404, 500 etc), without clogging up the site tree and confusing content authors who rarely (if ever) need to edit them. Also works without the CMS module installed.
Error documents are DataObjects which can be edited via the âSettingsâ area of the CMS. There is no versioning or draft/live stages, so all changes are published immediately. On encountering an error, SilverStripe will look for a matching error document and render it if one is found.
Cached content is still stored in
assets/error-<code>.html files, and itâs still possible to use custom templates if required.
When the CMS module is installed,
PageController::init() will be called before rendering the error document to ensure any requirements are included. If you need different behaviour in this method in the event of an error, you can check
if ($this->data()->ClassName === ErrorDocument::class).
As an example, in the event of a 404 error this module will look for the following templates:
If none of the above templates are present and you have the CMS module installed, the module will fall back to using the default
The âFail Whaleâ is an illustration of a white beluga whale held up by a flock of birds, originally named âLifting a Dreamerâ, illustrated by Australian artist Yiying Lu. It was used during periods of downtime by the social networking service Twitter.
h/t to @andrewandante for the suggestion!
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