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

Downloads

Version Downloads Date Links
5.x-1.0 tar.gz (7.63 KB) | zip (8.32 KB) 2008-Feb-19 Notes

Project Information


Maintainers for Block Term

  • JacobSingh - 1 commit
    last: 3 years ago, first: 3 years ago

Issues for Block Term

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 5 Mar 08
nobody click here