By redraven on
Could anyone provide me with some links or ideas on how to utilize related terms and get those terms to display, ideally with other terms in the category description of nodes
It seems like related terms could be very powerful, but its a little confusing in the documentation how they are actually implemented. Nothing seems to happen in the drupal interface to indicate related terms when I start declaring related terms in a specific vocab and then tag nodes??
Are there php variables to recall related terms in a theme template? (phptemplate ideally or xtemplate)
Thanks
Comments
Someone correct me if I'm
Someone correct me if I'm wrong, but as far as I know related terms are not used by any Drupal core module.
But a custom module could use them to implement thesaurus-like functionality. The function taxonomy_get_related() could be useful in this regard.
// David Lesieur // Whisky Echo Bravo // Web applications development // Montreal, Canada //
This thread gives a good
This thread gives a good explanation of related terms:
http://drupal.org/node/34627
I used related terms on a test site long ago (unfortunately, it is dead) but don't recollect having any problems displaying them
Any ideas
Thank you both for the reply
I took a look at the mentioned function and played around a bit
I am not sure really how to approach this, I don't have much programming experience. So a module seems a little out of my depth, going to still investigate.
In the meantime couldn't i just hack at the phptemplate.engine file.
Declare a new variable 'related' and call that in the node.tpl file
'related' => taxonomy_get_related(),
I tried this and I get an error:
warning: Missing argument 1 for taxonomy_get_related() in /home/.bartlett/redraven/aggdev.dreamhosters.com/modules/taxonomy.module on line 521.
I think my problem is that I don't know how to associate my new variable $related with $terms, so I display the related terms of a specific term.
Any help would be greatly appreciated
Thanks