Using Taxonomy Views Integrator to refine term displays
Using TVI to refine your term displays
The TVI module is made for people who want more control over the way views work with taxonomy terms. As you may know, you can create one or more views that output your term content however you are limited in how you may apply views to terms as a result of how the taxonomy module manages it's page callbacks. You can have a view on 'taxonomy/term/*' or 'taxonomy/term/[n]'... But how do make a view for one taxonomy vocabulary? TVI solves this problem.
TVI was written to allow selective overrides on vocabulary and terms with the view of your choice. TVI does not step on the toes of taxonomy or views that output to 'taxonomy/term/*' pages. If there is no TVI enabled view for the term or vocab currently being viewed, TVI passes the page request to the non-TVI view used for this callback. Or in the case that there is no view defined to handle the callback, TVI passes the request to taxonomy.
Enough! How do I use it?
- Enable TVI module (requires taxonomy and views)
- Define or clone views named in the following manner
Term: taxonomy_[vocab id]_[term id] ex. taxonomy_3_7
Vocab: taxonomy_[vocab id] ex. taxonomy_5 - Optional step: After you create your TVI active view, you can visit
the term or vocabulary that the view is applied to and select the view display plug-in to use.
Things to note
- 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.
- TVI does not care what your view does however TVI will pass the term id and vocab id 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 - TVI has an order of precedence mechanism:
- view named: taxonomy_[vocab id]_[term id]
- view named: taxonomy_[vocab id]
- view path: taxonomy/term/tid(s) (exact match) +
- view path: taxonomy/term/* +
- taxonomy: taxonomy/term/tid(s) ++
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...
- 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.
--------------------------------------------------------------------------------
+ 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.

Todo
One thing that I am probably going to add soon is the ability for TVI to auto-generate scaffolding views from the term/vocab edit pages. This should reduce some confusion that may occur...
http://collectivecolors.com