Jump to:

3435 Posts in 1026 Topics by 866 members

Template Questions

SilverStripe Forums » Template Questions » Customizing Error Page

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

Page: 1
Go to End
Author Topic: 737 Views
  • Moose Graphix
    Avatar
    Community Member
    1 Post

    Customizing Error Page Link to this post

    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 Page.ss template. Can i move this? Or if possible just leave it a blank white page with the text?

  • martimiz
    Avatar
    Forum Moderator
    1068 Posts

    Re: Customizing Error Page Link to this post

    Hi, welcome to the forums,

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

    If you really want a totally different page layout, like a white page, create a new ErrorPage.ss 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...

    737 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.