/[drupal]/contributions/modules/blocks404/README.txt
ViewVC logotype

Diff of /contributions/modules/blocks404/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3, Fri Jan 2 22:56:46 2009 UTC revision 1.3.2.1, Mon Sep 7 15:48:55 2009 UTC
# Line 1  Line 1 
1    // $Id$
2    
3  ABOUT  ABOUT
4    -----
5    
6    On 404 Not Found pages, Drupal will skip rendering of several pieces of your  On 404 Not Found pages, Drupal will skip rendering of several pieces of your
7    website for performance reasons. These include:  website for performance reasons. These include:
8      1. The "Left" and "Right" regions of your theme.    1. The "Left" and "Right" regions of your theme.
9      2. The "Primary links" block and any other menu links block.*    2. The "Primary links" block and any other menu links block.*
10      3. The Primary links and Secondary links of your theme.*    3. The Primary links and Secondary links of your theme.*
11    
12         * Unless you have configured a "Default 404 (not found) page" on       * Unless you have configured a "Default 404 (not found) page" on
13           admin/settings/error-reporting.         admin/settings/error-reporting.
14    
15    But many websites find those items invaluable. Especially on 404 pages, when  But many websites find those items invaluable. Especially on 404 pages, when
16    they want to show users how to get to real pages.  they want to show users how to get to real pages.
17    
18    So this module simply revives those features on 404 pages.  So this module simply revives those features on 404 pages.
19    
20    
21  INSTALLATION  INSTALLATION
22    ------------
23    
24    Unless you are using the Zen theme, you will need to modify your theme using the
25    instructions below:
26    
27    To let your PHPTemplate-based theme interact with this module, you need to add
28    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:
29    
30    Simply install and enable the module. No configuration needed.  function _phptemplate_variables($hook, $vars) {
31      $vars = array();
32      if ($hook == 'page') {
33    
34        // These are the only important lines
35        if (module_exists('blocks404')) {
36          blocks404_preprocess_page(&$vars, $hook);
37        }
38    
39      }
40      return $vars;
41    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.2.1

  ViewVC Help
Powered by ViewVC 1.1.2