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.

Template Questions /

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

Customizing Error Page

Go to End

2 Posts   1423 Views

Moose Graphix

Community Member, 1 Post

8 October 2011 at 9:07am

I am new to SilverStripe, but being a developer i picked it up very quickly and with ease. A rare feat for CMS's. Anyways, i have different pages with different controllers which was easy enough, but im having a hard time finding the "template" for the error page. right now if you go to the wrong page, it gives you the message "Sorry it seems you........access try again" but its placed above my template. Can i move this? Or if possible just leave it a blank white page with the text?


Forum Moderator, 1203 Posts

9 October 2011 at 5:07am

Edited: 09/10/2011 5:08am

Hi, welcome to the forums,

To change the layout for errorpages, create a /yourtheme/templates/Layout/ template, copy the contents of /yourtheme/templates/Layout/ and change to your liking.

If you really want a totally different page layout, like a white page, create a new directly in your /yourtheme/templates/ directory

Then do a ?flush=1 on (one of) your errorpage(s). You need to republish all errorpages in the CMS, to force SilverStripe to renew the static errorpages in your assets directory...