Custom Error pages?

Gravatar Matt-SD

  • Posts: 41
  • Topic Created: Mon Apr 11 07:49:03 2011 +0200

When I say "error pages" I mean the ones like "template missing", etc.

I'd like to have them in my theme rather than manually changing the Chyrp code.

Gravatar Arian

You mean 404 page error types or custom Chyrp errors?

If the first one, then you have a 404.twig file which you can customize as you see it fit.

But if the later, then you're not really required to have custom error messages since Chyrp dictates that to give you a clue of what is the problem.

Gravatar Matt-SD

Damn. I guess I'll have to start hacking at Chyrp source code to get my custom themed error pages.

Gravatar Arian

I don't really get the point on why you would want to do that, but still I believe it's a little odd to want to change core error messages. They're for you to help you fix errors on the site and not for the visitor.

Gravatar Matt-SD

What I was thinking of doing was something like this:

If myself or another admin is logged in, it shows the full, proper error in a page that fits the design of the rest of my site, but if the visitor is not an admin, it only shows what the problem is & not the technical bits.