Needs review
Project:
Taxonomy Block
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2009 at 21:14 UTC
Updated:
11 Nov 2009 at 09:31 UTC
Just discovered this module, and it's just what I needed. I also work with Taxonomy Redirect, and the block doesn't take that into account. So I've made some changes to integrate Taxonomy Redirect. Thought it might be useful to others as well.
Um... I'm a little embarrassed to admit, but I don't really know anything about PHP, so I'm just posting the modified module code. My additions are directly after the i18n adjustments, in both parts.
BTW - I've seen a lot of queries and data processing in this module, and I think a lot of them already exist in functions in the Taxonomy module - perhaps they can be used?
Great module, thanks for sharing it.
~ Tal
| Comment | File | Size | Author |
|---|---|---|---|
| taxonomy_block.txt | 4.12 KB | valante |
Comments
Comment #1
valante commentedMade some more changes:
1) In settings, added variables for how many terms to show in first generation, and how many terms to show in following generations.
2) When a term has 0 nodes associated with it, don't link to term, just print plain text.
I can only post the module files in zip, because I have no idea what else to do with them. Anyone interested?
~ Tal
Comment #2
tallsimon commentedI would love to see this make it into the module code, or if not see the version you made in a zip. thanks.
Comment #3
drupalnesia commentedThis post talking about compatibility to Taxonomy Redirect and have patched to 6.x-1.0-BETA2: http://drupal.org/node/606356
Make a try and reporting back.