Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different taxonomy_term view depending on vocabulary (Drupal)

I'm using taxonomy_term view to display term pages. The problem is that taxonomy_term view, when active, is used for every term page.

I need to display different term pages depending on the vocabulary that the term is assigned to.

If I have vocabulary "1", I need to display only image and title, when I have vocabulary "2" I need image, title and teaser. Finally, when using vocabulary "3", I need the same items as in vocab 2, but with different sort criteria.

Is there a way to accomplish this in a fairly simple way or at least a way to use taxonomy_term view for 2 vocabularies and use regular term pages for others? I searched on drupal.org, there are many similar questions, but usually the answer is that some other modules should be user (e.g. Panels), which is quite complicated and it affects speed performance. Here is a useful discussion, with a snippet, but it didn't work for me:

http://drupal.org/node/224231#comment-1981052

like image 661
Mint Avatar asked Nov 28 '25 01:11

Mint


1 Answers

The Taxonomy Views Integrator module is exactly what you're looking for: http://drupal.org/project/tvi

like image 187
Jared Avatar answered Dec 01 '25 16:12

Jared



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!