Any way to make custom 404 pages?

Permalink
Is there a way to make custom 404 pages?

dibbc
 
dom replied on at Permalink Reply
dom
..had this question too and found this great description from Remo:

http://www.codeblog.ch/de/2010/01/concrete5-custom-404-page/...

..it describes how you can use your own theme for this page..
..to edit the page just go to the dashboard und set the "show system pages" checkbox in the sitemap and you will find "Page Not found", "Page Forbidden", "Login" etc.

..you can also edit the single page
/concrete/single_pages/page_not_found.php (http://www.concrete5.org/community/forums/customizing_c5/404_page_page_not_found/)
dibbc replied on at Permalink Reply
dibbc
OK thanks. I used Google translator (I don't read German) and basically it turns your 404 page into a page with a sitemap. Pretty cool.

Here's what a 404 page on my site looks like now, and I'm going to customize it a bit more, but the sitemap stuff is great!

http://dibbvids.com/asdfjkl

So, basically, edit "/concrete/single_pages/page_not_found.php" and insert the following block of text right before the last line:

<?php
$bt = BlockType::getByHandle('autonav');
$bt->controller->orderBy = 'display_asc';
$bt->controller->displayPages = 'top';
$bt->controller->displaySubPages = 'all';
$bt->controller->displaySubPageLevels = 'all';
$bt->render('view');
?>
Remo replied on at Permalink Reply
Remo
dibbc replied on at Permalink Reply
dibbc
Oh dude, I didn't even notice the German/English flag up in the corner, now I do!

Thanks a lot, great procedure man.
Remo replied on at Permalink Reply
Remo
I planned to redesign my blog, including a new language switch... But as always, time is limited..