I just recently have created a new module.
Basically what this would do is display in a block latest postings on a particular taxonomy.
There're lot of things need to be done:
1. put more link
2. select what node types to display on the block
3. include related terms and synonyms on that block
here's the code, feel free to test and comment on it. thanks...
[%
function taxonomy_block_link($type, $node = 0, $main = 0) {
if ($type == "system") {
drupal_set_html_head("
rel=\"stylesheet\"
href=\"modules/taxonomy_block/taxonomy_block.css\" />\n"
);
}
}
function taxonomy_block_help($section = "admin/help#taxonomy_block") {
$output = "";
switch ($section) {
case 'admin/help#taxonomy_block':
$output = "
Display list items from taxonomy in a block.
";
break;
case 'admin/system/modules#description':
$output = t("Display in a block the list of items/nodes from taxonomy.");
break;
}
return $output;
}
function taxonomy_block_block($op = "list", $delta = 0) {
if ($op == "list") {
$vocabularies = taxonomy_get_vocabularies();
$ctr = 0;
foreach ($vocabularies as $vocabulary) {
if (variable_get("taxonomy_block_show_" . $vocabulary->vid, 0)) {
$vocab_tree = taxonomy_get_tree($vocabulary->vid, 0);