andrelohmann-silverstripe / framework-errorpage-patch
Patches silverstripe framework core to create custom error pages when cms-module not in use.
Installs: 906
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/andrelohmann-silverstripe/framework-errorpage-patch
Requires
- php: >=5.3.2
- composer/installers: *
- silverstripe/framework: 3.7.*
README
Maintainers
- Andre Lohmann (Nickname: andrelohmann)
Requirements
Silverstripe 3.7.*
Introduction
Patches silverstripe framework core to create custom error pages when cms-module not in use.
Installation
always install the Version number matching your silverstripe framework version
put the follwoing post install and post updates scripts into your composer.json
"scripts": {
"post-install-cmd": [
"cp vendor/andrelohmann-silverstripe/framework-errorpage-patch/* -r framework/"
],
"post-update-cmd": [
"cp vendor/andrelohmann-silverstripe/framework-errorpage-patch/* -r framework/"
]
},
Usage
create following files:
/YOURPROJECTFOLDER/templates/ErrorPage.ss
/YOURPROJECTFOLDER/templates/Layout/ErrorPage.ss
These Files will build your custom Error Page