This project is not covered by Drupal’s security advisory policy.

BlockTerm lets you specify taxonomy terms to show this block on. When you visit a page where the node is tagged with one of these terms, the block will show, otherwise it won't.

Note: This is built it a not-ideal way combining the theming layer and the module layer. This is only necessary because Drupal 5 doesn't support any clean way to do it. The D6 version (will be out soon) will use http://api.drupal.org/api/function/template_preprocess_block to do it properly. Stay tuned

Installation

  1. Enable the module
  2. add the following to [yourtheme]_block($block) in template.php:
    if (module_exists('blockterm')) {
      if (!blockterm_can_show($block) ) {
        return;
      }
    }
    
    return phptemplate_block($block);
    
    

Usage

  1. Edit any Block, open up the fieldset for Block Taxonomy, select some terms
  2. add *node/* to the list of allowed URLs (else this module will do nothing)
  3. Save it and try it out!

Sponsored in part by Amnesty International and CivicActions

Project information

Releases