This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
404 [2012/03/12 14:30] ChriS created |
404 [2014/01/15 23:15] datiswous [Custom 404 Page] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Custom 404 Page ====== | ||
The standard content file for the error 404 page is created and saved in "/data/other/404.xml". | The standard content file for the error 404 page is created and saved in "/data/other/404.xml". | ||
- | To customize it create a new page called 404. It will override the standard version. | + | To customize it create a new page with slug((Slug: See wiki section: [[:basics|Admin Reference/GetSimple Basics]])) 404. It will override the standard version. |
The code is in index.php | The code is in index.php | ||
- | <code># define page, spit out 404 if it doesn't exist | + | <code php># define page, spit out 404 if it doesn't exist |
$file = GSDATAPAGESPATH . $id .'.xml'; | $file = GSDATAPAGESPATH . $id .'.xml'; | ||
$file_404 = GSDATAOTHERPATH . '404.xml'; | $file_404 = GSDATAOTHERPATH . '404.xml'; | ||
Line 17: | Line 18: | ||
exec_action('error-404'); | exec_action('error-404'); | ||
}</code> | }</code> | ||
+ | |||
+ | ======Links====== | ||
+ | Back to the GetSimple Wiki [[:start|Contents Page]] | ||
+ | ==Pages in this Section== | ||
+ | ===Adding and Editing Content=== | ||
+ | *[[how_to:wysiwyg_editor|WYSIWYG Editor]] | ||
+ | *[[:components|Components]] | ||
+ | *[[:404|Custom 404 Page]] |