Taxonomy Hypergraph for Drupal 6.x
| Project: | Hypergraph |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
I hacked together a solution to Hypergraph for taxonomy. Replace the file graphs/hg.php with the attached hg_tax.php. I basically changed the function hypergraph_get_menu. There are some caveats:
1) Still only able to render one graph unless I am missing something.
2) This code hardcodes to the Vocabulary with $vid=1. If you have multiple vocabularies, you'll have to adjust the code. Also, have to adjust ref links since 1, in: <ref xlink:href="taxonomy/term/1,' . $list->tid . '" /> refers to vocabulary $vid=1.
3) Vocabulary is given name "tags" and depth = 0, all terms and nodes have depths > 0.
4) The code sets one node depth for each node ID. Therefore, if you have a node with multiple tags, it will choose the depth based on first term in vocabulary that the code utilizes.
| Attachment | Size |
|---|---|
| hg_tax.php_.txt | 11.95 KB |

#1
Forgot to acknowledge this snippet http://drupal.org/node/177152 was very helpful in creating the menu.
#2
Realized I uploaded the old version of my code.
#3
This is a great feature. Unfortunately, I'm using Drupal 6.8. Do you plan to migrate your work to 6.x? What would be involved in doing this from your work so far?
Thanks in advance for a great contribution.
jbyrneiu
#4
My site is currently on 5.x so I have no plans. Seems this module is not getting updated as the last code change was March 2008.