Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

create custom error page layout based on error code


Go to End


1222 Views

Avatar
wake2010

Community Member, 9 Posts

10 January 2012 at 3:06am

ok i found this Solved- custom error pages]http://www.silverstripe.org/general-questions/show/8919] Solved- custom error pages which got me started but now im in a bit of a pickle, how do i customise the layout based on the error code.
IE. 404 i have a image hard coded in html with a simple history.go(-1) and some text. a 500 however i want to hard code a different image and link.
any ideas how to do this