Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I love the Taxonomy Tree that appears when creating a node with a content taxonomy field. I'd really like to have the taxonomy tree to be presented when exposing a filter of a content taxonomy field using Views (i.e. instead of the flat select list). Is this possible?
Comments
Comment #1
dajjenI also would like to have that feature.
I can't find any way of getting the taxonomy tree as a selection type in views exposed filter.
Does anyone know?
Best regards/
Dajjen
Comment #2
zio CreditAttribution: zio commentedAre any news for this issue?
Comment #3
stinky CreditAttribution: stinky commentedSubscribe
Comment #4
vodoleq CreditAttribution: vodoleq commentedSubscribe
Comment #5
squinternata CreditAttribution: squinternata commentedsubscribe
Comment #6
clashar CreditAttribution: clashar commentedsubscribe,
this issue #904184: Exposed filters should present 'Content Taxonomy Tree' of vocabulary terms as a hierarchical (!) tree is also related.
Comment #7
owntheweb CreditAttribution: owntheweb commented+1 :)
I want this feature too. I have a deep tree that gets REALLY ugly when exposing as a flat select list filter...
Best regards,
Chris
EDIT:
Here's a start (not quite compatible but maybe there's a work-around?):
http://wimleers.com/demo/hierarchical-select/taxonomy
Comment #8
lahode CreditAttribution: lahode commentedHi,
You should use http://drupal.org/project/views_tree, Then :
1) create a taxonomy view type
2) Add 2 fields (name + Tid)
3) In Relation: add a "parent term"
4) Add a third field (tid) and assign it to your parent relation
5) Finally choose Format "Tree (Adjacency model)" and select in the parameters : Ordered list + Main field (your first tid), Parent field (your tid assigned to the parent relation)
This should solve your nested view problem
Cheers
Comment #9
lahode CreditAttribution: lahode commentedHi again,
If you're interested to add the nodes and the end of each term in order to make a directory-like display, please find here the solution. In a block it can also be an alternative to Taxonomy Menu.
http://drupal.stackexchange.com/questions/11291/how-do-i-create-a-nested...
Comment #10
mrP CreditAttribution: mrP commented@lahode -- Thank you for posting #8. I've been looking for a module to provide this functionality for a long time. Made my Drupal day.
Thanks!
Comment #11
kreaton CreditAttribution: kreaton commentedlahode (#8) thank you very much, I was about to write a module for this purpose.
Comment #12
alanom CreditAttribution: alanom commented"Hi"!?
Comment #13
teodor.sandu CreditAttribution: teodor.sandu commentedHi guys,
thanks for comment #8 - really neat stuff.
Cheers
Comment #14
phuocdv CreditAttribution: phuocdv as a volunteer and commented#8 work for me . Thanks you !