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

merlinofchaos’s picture

Status: Active » Closed (won't fix)

Unfortunately, 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.

Nicolas_85’s picture

Thank 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 :

<select id="edit-field-vocab-tids-hierarchical-select-selects-1" class="form-select" name="field_vocab[tids][hierarchical_select][selects][1]">
<option class="has-children" selected="selected" value="143">Term 1.1</option>
</select>

Regards,

Nicolas

summit’s picture

Status: Closed (won't fix) » Postponed (maintainer needs more info)

Subscribing, interested in hierarchy very much!, greetings, Martijn

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Sorry, 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.

cpojoni’s picture

Version: 5.x-1.6 » 6.x-2.5

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