This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
404 [2012/10/31 15:54] 127.0.0.1 external edit |
404 [2014/01/15 23:15] (current) datiswous [Custom 404 Page] |
||
---|---|---|---|
Line 2: | Line 2: | ||
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 18: | 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]] |