Block Term
Categories
Component ID
223703
Component name
Block Term
Component type
module
Maintenance status
Component security advisory coverage
not-covered
Downloads
2719
Component created
Component changed
Component body
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
- Enable the module
- 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
- Edit any Block, open up the fieldset for Block Taxonomy, select some terms
- add *node/* to the list of allowed URLs (else this module will do nothing)
- Save it and try it out!
Sponsored in part by Amnesty International and CivicActions