Blog Archive

Wednesday, 10 September 2014

How to add a 'related nodes' block that links to a taxonomy using views in Drupal 7?

1. Create an argument by adding the taxonomy field on which you want to find the related nodes.
2. Select "Provide default argument".
3. Argument type = "Taxonomy Term ID from URL"
4. Remove tick from "Load default argument from term page"
5. Tick the "Load default argument from node page, thats good for related taxonomy blocks."
To remove duplicates you have to follow the following points.
1. Open "Query settings" in the "Advanced Settings".
2. Tick "Distinct".
This gives you a perfect "Related Articles" or "Related Nodes" using Views.

No comments:

Post a Comment