Taxonomy Views Integrator

deeporange1 - September 11, 2009 - 00:39

TVI Overview

The TVI (Taxonomy Views Integrator) module allows selective overriding of taxonomy terms and/or vocabulary with the view of your choice. Using TVI you can easily create custom views to output all terms in X vocabuarly.

TVI will try not to interfere with views or taxonomy/term page displays if no TVI views exist for the current page request.

Usage scenarios:

Lets say you have a vocabulary defined for events, news items, and blogs. If you want to have a calendar view for all term displays in events, a node view for all news items, and you want to have standard taxonomy displays for blogs, this is where TVI shines.

So what?

Using TVI you can customize the look and feel of any and all terms in a vocabulary with only one view. Since you are using individualized views, you can modify the display plugins, sorting order, and more, giving you greater flexibility in re-working your term displays to your specifications.

How do you use it:

  1. Enable TVI module (requires taxonomy and views)
  2. Clone the default taxonomy/term/* view and rename it using the following patterns:
    Term: taxonomy_[vocab id]_[term id] ex. taxonomy_3_7
    Vocab: taxonomy_[vocab id] ex. taxonomy_5
  3. Optional step: After you create your TVI active view, you can visit the term or vocabulary edit page that your newly created view is applied to and select which display plugin to use as well as to disable/enable TVI useage for this term/vocab.

The nitty-gritty:

  1. TVI cannot currently deal with multiple term displays. ex. taxonomy/term/4+6+7 and will pass these requests to non-TVI views if they exist, or taxonomy if all else fails.
  2. TVI does not care what your view does however TVI will pass the terms and depth to the view as arguments. To make use of these, simply add the following arguments:

    A1: Taxonomy: Term ID (with depth)
    A2: Taxonomy: Term ID depth modifier
  3. TVI has an order of precedence mechanism:

    1. view named: taxonomy_[vocab id]_[term id]
    2. view named: taxonomy_[vocab id]
    3. view path: taxonomy/term/tid(s) (exact match) +
    4. view path: taxonomy/term/* +
    5. taxonomy: taxonomy/term/tid(s) ++
  4. You may clone the default taxonomy/term/* view to create your TVI views as their arguments are identical. However, it is a good idea to give all TVI views that provide page displays a path other than the default taxonomy/term/*. Alternatively, you may remove the page displays and simply use the default view for TVI views.

Thus, a view named taxonomy_2_5 will be used to display the 5th term in the second vocabulary and will superceed the view defined for taxonomy_2, etc...

+ If there are no TVI active views (name pattern: taxonomy_[voc]_[term]), then
TVI will seek to find a view with the requested path.

++ In the case that TVI finds no views (TVI active or otherwise) for this term
display, TVI will pass the buck to taxonomy.

This module is in Beta so it may not be a good idea to use it on production sites!

Releases

Official releasesDateSizeLinksStatus
6.x-1.0-beta32009-Oct-0110.77 KBRecommended for 6.xThis is currently the recommended release for 6.x.


 
 

Drupal is a registered trademark of Dries Buytaert.