Home ›
Similar Nodes | drupal.orgSimilar Nodes | drupal.org
Submitted by Kathleen Murtagh on June 8, 2009 - 4:21pm
Link Title and URL:
Similar Nodes | drupal.org This module provides a way to find similar nodes by taxonomy using views.
Features:
- Weighting by vocabulary - Say you have two vocabularies on a movie site "Genre" and "Community Tags", the latter being a free tagging taxonomy. With this module, you can give Genre a weight of 10 and Community tags a weight of 1. Which means that if I'm looking at "Meet the Parents", I'm most likely to see a list of similar Romantic Comedies like "Sleepless in Seattle" and "French Kiss" with something like "Taxi" or "The Godfather II" coming lower in the list, because someone tagged both "Robert De niro"
- Sorting - Sorts by weight... pretty simple
- Filtering - I want to see only those with a weight higher than 15... this is a little arbitrary, and you are better off using the pager / limiting results, but it does work - Actually, doesn't. I tried to hack around views not letting me mess with the count query, but just couldn't get a HAVING in there... Oh well.
Usage:
- Install the module (duh)
- Go to admin/settings/similarnodes
- Set the weight for each taxonomy
- Now create a view, add the argument "SimilarNodes: Source Node Id" - You need this to make it work
- Add the field SimilarNodes: Weight
- give it a shot! go to yourview/{NID} for a list of related nodes