I need some help with the taxonomy view.
How can I create many views for many terms ?
I want that many terms from different taxonomies terms point to different views or at least to different structures of the same view.
The problem is that drupal translate each link of all taxonomy term to the model taxonomy/term/% that makes that all taxonomy term point to the same view. and I want that each taxonomy term point to a different views.
I hope i expressed myself well !
Thank you very much!
2 Answers
Create a view with a page display that has a Drupal path of e.g. taxonomy/term/5
. This page display will then only be used for the term with the tid
5. Create other views or page displays for the other terms.
If you want separate views based on the vocabulary that the term belongs to, have a look at the Taxonomy Views Integration module.
-
-
Ok but if want the same view for many terms (15) and the others view for many terms(100) ?? Mar 19, 2012 at 19:52
The way I would go would be to first create the desired views, then create custom "page–taxonomy–term–[tid].tpl.php" files, and in their code use the views_embed_view
invoking the desire per-page view. I'm not sure though if this is the most effective way.
tid
by 3 (just kidding)? Based on the current phase of the moon (kidding again)? If you can establish a rule for selecting a view, you do not need to create separate page displays for each term. But we need to know this rule to be more helpful.taxonomy/term/%
for both views and configure the argument validators differently (contextual filter in recent versions of Views). But this does not work. So I looked for a module that can do this. See my updated answer for details.