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

Daniel A. Beilinson’s picture

subscribe

Gary Feldman’s picture

I'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.

pbuyle’s picture

I 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.

ndf’s picture

Same 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.

aismail’s picture

Any 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.

YK85’s picture

subscribing

xjm’s picture

josepvalls’s picture

Subscribe

robby.smith’s picture

subscribing

MickC’s picture

Having lots of trouble with this - is it possible to filter on a level, and show only values in the field at that level?

vodoleq’s picture

subscribing

fraccle’s picture

subscribe

MBroberg’s picture

http://drupal.org/node/769136
This module patch is in the works...

pbuyle’s picture

After 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).

clashar’s picture

subscribe

CarbonPig’s picture

Subscribe - any news on a filter to limit by taxonomy depth?

tema’s picture

Subscribe

joecanti’s picture

Hello 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