Drupal Views: Get nodes with the same taxonothe as the current node

drupaldrupal-taxonomydrupal-viewstaxonomyviews

I have a Content-Type with taxonomy-terms. It's a select-list, so it can have only one taxonomy – at least of that vocabulary. Now I need to build a view that lists all nodes with the same taxonomy.

Thought that this wouldn't be too hard since it sounds pretty basic. Yet I can't get it working. Any ideas? I'm trying to avoid writing a module for this.

Best Answer

While this was technically possible with Views 2 as described in some of the other answers, Views 3 has this integration built in.

You can create an argument for the taxonomy term id and then choose "Provide default argument". This will then give you an option for "Taxonomy Term ID from URL" and "Load default argument from node page..."

This will allow you to take the taxonomy of a page and pass that as an argument to your view block.

Note: Views 3 is currently in Alpha 3 but in my experience is at a relatively stable state and I am using it on production sites. If it has features like the one above that you find useful please use it, test it and submit bugs/patches if you encounter any issues!

Related Topic