Link Taxonomy Terms to Custom Views in Drupal
By default, views of type Term link to category pages (taxonomy/term/[tid]). I find that category pages are more useful as custom views where you can control fields. You can effectively replace the default category pages with a customized view by following this views recipe. And no programming is needed.
First create the categories block
- Create a new view of type "Term"
- Add a block display
- Set row style to fields
- Add Taxonomy: Term ID as a field (this must be first). Be sure to set "Exclude from display". This information will be used to as an argument in our other view.
- Add Taxonomy: Term as a field. Check "Output this field as a link" and set the link path to your-other-view-path/[tid] You will only have the token for Term ID available if the Term ID field is listed above the current field.
- Create a new view of type "Node"
- Add a page display
- Set the path to the same path used in step 5. ( your-other-view-path )
- Add a Taxonomy: Term ID argument
- Customize the rest of the view to your liking
Now, term listings will link to your custom view instead of the default category listing page. Because your custom view takes an argument, you will restrict the view to listing the very same nodes that the default category listing will show. However, you now have the power of views to customize the display.
Related Drupal Reading


Nice Article
Thanks Dustin!! It works like a charm. I was looking for some hack in Taxonomy module. But this approach is very clean. Thanks again.
can we add more views to different taxonomies ?
hi,
It was a great trick, what if we want to customize look and feel of some taxonomies differently from other taxonomies, definitely we have to add more views but HOW ?
Can you give a hint about that,please. I am new to drupal.
THANKS
Thanks so much for this
You really saved me so much time with this.
Awesome!!
Displaying subterms in a tree structure?
This is a great step by step to link the taxonomy terms to custom views. Just followed your instructions and it worked like a charm.
I have a question: Is there anyway in Views to list the taxonomy terms and it's subterms in a tree like fashion. The view of type Term created in your step 1 displays all the terms and subterms in a flat manner, instead of a tree like structure?
Vocabulary Index module does this exactly the way I want, but the page that vocabindex module creates is not a view and I cannot customize it and link each term to custom view.
Any suggestions are highly appreciated.
Bacon saver
Nice - thank you very much for that. I had been struggling to make views allow me to different layouts for two different vocabularies. I was having very little luck until I read your post. Thanks.
yes - it would be nice export
yes - it would be nice export the views - i doesn't function in my installation ...
Is there anybody who can
Is there anybody who can followed this instruction and made it work, please kindly share your experience, thanks.
would like to clarify the steps
This seems to be a simple but great solution that I have been looking for.
However, I haven't got it work yet as I am not clear about some steps you mentioned.
1) For step 5, you mentioned that we check "Output this field as a link" and set the link path to your-other-view-path/[tid]. I don't see such checkbox in my views, I can only see the checkbox "Link this field to its taxonomy term page", and there is no link path for me to define. Do you have any idea? I am using Drupal 6.x and Views 6.x-2.2.
2) What do you mean for the "your-other-view-path/[tid]"? Fyi, I am using Taxonomy Menu which defined the Taxonomy path as (for instance) "http://localhost/drupal/category/knowledge/biology/bird" instead of the nomal "taxonomy/term/%". What should I define for the "your-other-view-path/[tid]" then?
Please excuse me if I am asking stupid questions, as I am a newbie for drupal.
I have the same problem -
I have the same problem - there's no way I can enter a link for the term ID :/ Any idea why that may be? Also using Views 2.2. (later Views versions caused problems and I had to revert).
Veiws export
Much appreciated for the input.
It's also worth while for people new to views to export the php code using the export function in views so we can just copy the code into the import function.
It would be great to add this to the post.
You saved me ...
THANK YOU very much for this article!
You saved me hours of reasearch and trying. As I'm very new to drupal and views this wouldn't have been easy to figure out.
Just one small question:
Point "2. Add a block display" is not a must,
it can be whatever display type. Am I right or did
I miss something?
Thank you
jb
You are correct. It can be
You are correct. It can be any display type.
Glad it helped!
Awesome Tutorial
Great tutorial, it was just what I was looking for!
Thanks