Hello,

I need help with taxonomy and view.

I have a vocabulary called: Product main category

The vocabulary uses hierarchy:
Terms:

A
--A1
--A2
--A3

B
--B1
--B2
--B3

I want to give the user 2 dropdown lists when they capture a product.

Dropdown one will show:
A
B

Dropdown two will show:
If A selected:
A1
A2
A3

if B selected
B1
B2
B3

I couldn't find a module that can help me with that.

hierarchy select needs a module, that is in development for Drupal 5, and I installed it anyway, but couldn't figure out how to use it.

The other problem I have is that I need a view that gets the parent term as an argument, and displays the child terms as groups.

for example, for parent term A the view should look like this:

A

A1
product one
product two
product three

A2
product four
product five

A3
product six

Please, can someone help me with that?

Thank you,

Sigal

Comments

liliplanet’s picture

2 modules: http://drupal.org/project/hierarchical_select or http://drupal.org/project/multiselect

or in your view, add a filter of 'taxonomy term' and choose 'expose view'.

Hope this helps ..

Sigal’s picture

Thank you Liliplanet for taking the time to answer me.

I managed to figure out how to use the hierarchical_select module, but I still can't figure out how to do the view.

Now I have a vocabulary called: Product Main Category

In there I have the terms:

A
--A1
--A2

I've created a product with the parent as A and the child as A1.

So let's say, the Term A id is: 1, Term A1 id is: 2 and Term A2 id is: 3

But when I created a view that gets a term id as an argument, I don't get anything.

Also, if I try to go simply to mysite/taxonomy/term/2 - it tells me there are no products for this term.

Please can someone help me with the view that I need?

Again, the view should get the parent term is and display all the products grouped by the children term id's.

So it will look like this:

A

A1
product one
product two
product three

A2
product four
product five
product six

etc.

Thank you for your time.

Sigal