README.txt in 404 Blocks 5
ABOUT
-----
On 404 Not Found pages, Drupal will skip rendering of several pieces of your
website for performance reasons. These include:
1. The "Left" and "Right" regions of your theme.
2. The "Primary links" block and any other menu links block.*
3. The Primary links and Secondary links of your theme.*
* Unless you have configured a "Default 404 (not found) page" on
admin/settings/error-reporting.
But many websites find those items invaluable. Especially on 404 pages, when
they want to show users how to get to real pages.
So this module simply revives those features on 404 pages.
INSTALLATION
------------
Unless you are using the Zen theme, you will need to modify your theme using the
instructions below:
To let your PHPTemplate-based theme interact with this module, you need to add
some code to the template.php file that comes with your theme. If there is no template.php file, you can simply create one. Here is the code:
function _phptemplate_variables($hook, $vars) {
$vars = array();
if ($hook == 'page') {
// These are the only important lines
if (module_exists('blocks404')) {
blocks404_preprocess_page(&$vars, $hook);
}
}
return $vars;
}
File
README.txt
View source
- ABOUT
- -----
-
- On 404 Not Found pages, Drupal will skip rendering of several pieces of your
- website for performance reasons. These include:
- 1. The "Left" and "Right" regions of your theme.
- 2. The "Primary links" block and any other menu links block.*
- 3. The Primary links and Secondary links of your theme.*
-
- * Unless you have configured a "Default 404 (not found) page" on
- admin/settings/error-reporting.
-
- But many websites find those items invaluable. Especially on 404 pages, when
- they want to show users how to get to real pages.
-
- So this module simply revives those features on 404 pages.
-
-
- INSTALLATION
- ------------
-
- Unless you are using the Zen theme, you will need to modify your theme using the
- instructions below:
-
- To let your PHPTemplate-based theme interact with this module, you need to add
- some code to the template.php file that comes with your theme. If there is no template.php file, you can simply create one. Here is the code:
-
- function _phptemplate_variables($hook, $vars) {
- $vars = array();
- if ($hook == 'page') {
-
- // These are the only important lines
- if (module_exists('blocks404')) {
- blocks404_preprocess_page(&$vars, $hook);
- }
-
- }
- return $vars;
- }