Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.5
Component:
taxonomy data
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
19 Aug 2008 at 17:17 UTC
Updated:
22 Apr 2009 at 13:39 UTC
I have a vocabulary called Vocab built like that :
Term1
-Term1.1
-Term1.2
Term2
-Term2.1
-Term2.2
I also use Hierarchical Select.
In my view I'd like to have a display as following :
________________________________________________
Name | Field 1 | Field 2
Node1 Term1 Term1.1
Node2 Term1 Term1.2
________________________________________________
But when I try to set fields I don't really see something that could help me. I can only choose "Taxonomy Field Vocab (field_vocab)" without any option for hierarchy or depth.
I hope you could help me ! Thx !
Regards,
Nicolas
Comments
Comment #1
merlinofchaos commentedUnfortunately, Views doesn't have support for taxonomy hierarchy, so you can't really do this very easily. It may be possible to do lookups in the theme layer, but this would bequite complicated and goes beyond what I will be able to instruct you to do here. Sorry.
Comment #2
Nicolas_85 commentedThank you for your answer.
In fact when I create a new node I have a field (hierarchical select, a linked select list) as following :
_______________________________
Vocab :
[Term 1] [Term 1.1] [Term 1.1.1]
_______________________________
Is it possible to make an hidden field (cck taxonomy or taxonomy) which will take as default value (with php code maybe) the value of the second select list (Term 1.1 here) ?
I just know the code of that specific box :
Regards,
Nicolas
Comment #3
summit commentedSubscribing, interested in hierarchy very much!, greetings, Martijn
Comment #4
sunSorry, unfortunately this support request is way too specific. Please have a look at the issue queue - Views maintainers are buried already. You might want to try to get further support at http://drupal.org/support. Additionally, the answer to your question might be covered in the handbooks at http://drupal.org/handbook/modules/views already.
If you were able to solve this issue on your own in the meantime, you might want to add the involved steps to this closed issue, so other users searching for a similar solution might find it.
Comment #5
cpojoni commentedHave a look at http://drupal.org/project/lineage
It adds a new search criteria to views, but it displays the taxonomy tree only as tooltip.