Integration with Taxonomy Redirect (suggested code attached)
valante - July 3, 2009 - 21:14
| Project: | Taxonomy Block |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
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
| Attachment | Size |
|---|---|
| taxonomy_block.txt | 4.12 KB |

#1
Made 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
#2
I would love to see this make it into the module code, or if not see the version you made in a zip. thanks.
#3
This 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.