Active
Project:
Content Taxonomy
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2009 at 21:51 UTC
Updated:
4 Feb 2011 at 00:49 UTC
It would be great if the same feature as below was added in content_taxonomy.
http://drupal.org/node/271833#comment-1086526
Taxonomy depth for filters and exposed filters
It would be extremely helpful if the current implementation of views allowed a specification of taxonomy depth when using filters or exposed filters. This way a user could select (on an exposed filter) one taxonomy term, the parent, without needing to select all the children terms to see the full list of nodes (tagged with parent and children terms).
Comments
Comment #1
Daniel A. Beilinson commentedsubscribe
Comment #2
Gary Feldman commentedI'm not positive, but I think this is something I need, too.
I'm using Content Profile to attach a CCK content type to users and Advanced Profile Kit to get a rich profile type. I've added a hierarchical taxonomy to that type. Finally, I've created a custom view for displaying users, filtered by the taxonomy. So, for example, an individual might check just Violin on their own profile, but someone searching might want to just check String Instruments, and get all the people who play violin, cello, etc.
The filter with depth seems to be what I want, but I can't seem to get it applied to my custom content profile field.
Comment #3
pbuyle commentedI also need this filter.
Views provide "Taxonomy Depth" filter and argument handlers that does it (views_handler_filter_term_node_tid_depth and views_handler_argument_term_node_tid_depth). I'm not familiar with views' handlers but it is clearly do-able.
Comment #4
ndf commentedSame problem, solved:
Use 'Save values additionally to the core taxonomy system (into the 'term_node' table).' in your content-taxonomy field.
[Admin-menu > Content management > content types > -your content type- > manage fields > -your content-taxonomy-field-]
In views now you can use the taxonomy arguments instead of the content arguments.
I use 'taxonomy: term ID (with depth)', which works as a charm.
For development purposes render these fields in views:
'content: -your content-taxonomy field-'
'taxonomy: all terms'
When you render the view you see equal terms in above fields. Now it should work.
Comment #5
aismail commentedAny news on this? I need this filter, too. And I want to avoid storing in "core taxonomy system", because I'm trying to split that data (node-term association) into multiple tables, for performance reasons. Using CCK fields splits it for free.
Comment #6
YK85 commentedsubscribing
Comment #7
xjmMarked #721160: Add support for taxonomy depth with cck taxonomy fields as duplicate of this issue.
Comment #8
josepvalls commentedSubscribe
Comment #9
robby.smith commentedsubscribing
Comment #10
MickC commentedHaving lots of trouble with this - is it possible to filter on a level, and show only values in the field at that level?
Comment #11
vodoleq commentedsubscribing
Comment #12
fraccle commentedsubscribe
Comment #13
MBroberg commentedhttp://drupal.org/node/769136
This module patch is in the works...
Comment #14
pbuyle commentedAfter a quick-read of #769136: Taxonomy depth as field, I don't see any patch being worked for this issue.
This issue here is to get depth support for filters on Content Taxonomy fields (CCK fields). Such support is already available for filters on taxonomy terms (as provided by the Taxonomy menu).
Comment #15
clashar commentedsubscribe
Comment #16
CarbonPig commentedSubscribe - any news on a filter to limit by taxonomy depth?
Comment #17
tema commentedSubscribe
Comment #18
joecanti commentedHello nielsdefeyter,
Thankyou!!! I was struggling to find a way around this, but your comment #4 worked a treat...you may have written it over a year ago but it's pure gold and just saved me from hours of finding yet another solution...
Thumbs up :-)
Joe