Hi, I would like to have a seperate taxonomy_term view for each vocab in my site.
Here is the low down:
Vocabs:
- Location
- Tags
Content types:
- Package Holidays (tagged with Location)
- News (tagged with Tags AND Location)
Setting up a taxonomy_term view is trivial, however what I want is for each vocab to have its own taxonomy_term view - each filterin the node type.
Caveat: I must use the normal term alias's that are set up (taxonomy context generates contextual navigation and breadcrumbs). For example:
"news/uk-holiday-destinations" - shows list of news articles about UK holiday destinations (this is a normal path alias of taxonomy/term/tid)
"location/united-kingdom/london " - shows list of Package Holiday type nodes tagged with "London", but NOT news articles also tagged with "London" (again this is a normal path alias of taxonomy/term/tid).
In short:
How can I have two taxonomy_term views, one for each vocab, each displaying different sets of content types AND still use the normal path alias's.
Comments
Did you find an answer yet?
This is what I am looking for too.
I want a taxonomy_term view with teasers for one vocabulary and one with full nodes for another..
Did you find an answer yet?
I need to do that too!
I need to do that too! Anyone ?
I ended up putting the
I ended up putting the following argument handling code in the taxonomy_term view:
it displays the page in full node if the vocubulary id = 4
I am no programmer and just combined some code I found on Drupal.org so use it at your own risk..
Thanks for this! I've been
Thanks for this!
I've been searching for the better part of 6 months trying to figure out how to do this... almost there...
I want to do exactly this, though instead of resulting in the full node I would like the exception to be displayed in a different view ideally. Any ideas on how to replace the exception to display a vocab as a node with a view?
If I can't do that, I would settle for displaying them as teasers. In your example you displayed them as full nodes. I tried replacing 'node' with 'teaser' in $view->page_type = 'node'; but it still displays the full node. Any idea what I would put here to just display the teaser?
Hi
You can try instead of "node" to put 'list". For me, it worked, and now I have the view as teaser list.
Any idea of how to do this
Any idea of how to do this in Views 2?
Same problem here
I am looking for a solution to display different filters/pages based on the actual vocabulary.
Obviously, argument handling code isn't available anymore on views. 2.0...
Any hint or help is appreciated.
Best Regards,
Sandro
Override
I found a way to override the catalog view of ubercart with a special view:
this code have to be in the template.php. Maybe its possible to do something similar inside template.php to define wich view has to be displayed in wich vocabulary... ?
Ideas anyone?
Best Regards
Sandro
No ideas?
No ideas?
In Views 2 and Drupal 6.x use page attatchments
This is my workaround.
I added a filter (in my case a term ID filter, but a vocab filter would work) to the the "Page" display in the default "taxonomy_term" view. It's set to NOT display nodes in a specified term. On the same view I added an attachment display, with the same filter (as above) set to DO display nodes from the same term(s). Pretty simple.
The only issue is (in my case) with the "Taxonomy: Term ID (with depth)" filter. The current version doesn't have a "Is Not One Of" operator, so i have to select all the terms that I WANT to show in the default page. This might lead to a headache down the road when I want to add terms ...
Good for now.
M.M.
taxonomy_term view per vocab - Drupal 6
I needed "Row Style: Node" view for one of my vocabularies, after digging and messing around with views arguments for a little bit I came up with below solution (drupal 6.13+views 2)
Change Validator to PHP Code:
I have created new issue
I have created new issue http://drupal.org/node/639970
There is a great and simple
There is a great and simple module for this functionality - Taxonomy Views Integrator
http://drupal.org/project/tvi