Create a custom error page template

my system is running fine. and i get an error page. but i will it design myself and put more information on it.
how can i setup this page?
i cant find a template in /site/templates

By default it uses the default.php template
If you want to style it you need to create a file error.php in your templates folder. You can then style it however you want.

Also, make sure your content file in /content/error/ is called error.txt.

2 Likes

thanks a lot.
yeah! it works.

And if you want to use a slug other than the default /error, use:

c::set('error','sorry');
1 Like

hello @pedroborges
where can i write this code?

c::set('error','sorry');

This goes Most likely to /site/config.php. Just to be sure: This is true for Kirby 2.

1 Like

Kirby 3: https://getkirby.com/docs/reference/system/options/error

2 Likes