Allow HS to be used in Taxonomy: Term ID (with depth) filter
jrao - October 24, 2009 - 10:47
| Project: | Hierarchical Select |
| Version: | 6.x-3.x-dev |
| Component: | Code - Taxonomy Views |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Currently HS only show up as Selection type if I use views filter Taxonomy: Term, it doesn't appear if I use views filter Taxonomy: Term ID (with depth). It would be very helpful if HS can be used in Term ID (with depth) filter too.

#1
Sounds like it makes sense. Although I don't know how the "Taxonomy: Term ID (with depth)" filter actually works.
Patches are welcome :) Postponed until somebody posts a patch or sponsors this feature.
#2
Ok, I think a patch should be easy, although there could be a code duplication issue, since "Taxonomy: Term ID (with depth)" filter is also a subclass of views_handler_filter_term_node_tid.
I think I found an alternative to deal with the situation though: turn on save lineage on my vocabulary, this saves parent term to node and allows a filter on the parent term to display child term's node.
#3
Code duplication: we can create a base class of which we can derive multiple times for both implementation, to share code.
Glad you've find another way though :)
#4
subscribing....
#5
any patch? save term lineage doesn't work for me. I used HS as exposed filter in my archive, (no results found) It need to choose a term from the deepest level, there's any other way to choose only the parent term? then show all pages related to that parent term? there's any patch? I thinks I need term ID with depth to do this..
Thanks!
#6
Save term lineage does work. But you must enable "save lineage" for both the vocabulary on the node form *and* on the exposed filter. Otherwise it of course cannot work.
This requested patch could be used for special "save lineage" setups, but "save lineage" in se (see the first sentence) should work.
#7
Hi Wim Leers,
I'm new to drupal and I really want to implement HS in my archive, can you tell me how to enable "save lineage" so my archive can work properly. I'm using HS 6.x-3.x-dev, and Drupal 6.13?
Thanks Wim Leers!
#8
Please read the README.