Related terms View based on current node

Events happening in the community are now at Drupal community events on www.drupal.org.
minghui.yu's picture

When visiting node/x, how to use this node's NID and term(s) as argument to get related terms and associated nodes?

Say, node/123 has a vocabulary "Country and City" and its terms are Canada and Vancouver respectively. Within the same vocabulary, "Canada" is a related term of "USA" and "Mexico", and "Vancouver" is a related term of "Burnaby", "Richmond". Then I want to get a related terms View that list nodes associated with terms USA, Mexico, Burnaby and Richmond. Of course, also those nodes which have terms Canada and Vancouver too.

I think Attachment Display or Panel context may help but I am not sure. The logic should be get NID first, and based on specified vocabulary, get its terms and related terms, then use those terms to get nodes; slightly complex than ordinary taxonomy term views.

Any suggestion?

Thank you,

Minghui

Comments

I would suggest Similar by

dtarc's picture

I would suggest Similar by Terms: http://drupal.org/project/similarterms

This will show you nodes with the same terms in a view. Not sure about the related terms functionality.

Thanks

minghui.yu's picture

I installed that already. It does not do what I want. For example, if a node has a term "Buddhism", then it is related with other religions. (they do not have same terms though).

Vancouver

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: