How to restrict the selection of childcategories to one parentcatergory?

Events happening in the community are now at Drupal community events on www.drupal.org.
alduya's picture

I have a taxonomy with a structure like:

mode of transportation

Car
  - Convertible
  - Pick-up
  - Race car
  - Van
  - ...
Bicycle
  - Classic bicycle
  - Mountainbike
  - Race cycle
  - Trike
  - ...
Boat
  - Canoe
  - Ferry
  - Skiff
  - U-boat
  - ...

I want the user to be able to choose 3 subcategories from only one parent category, but they should be able to choose from which parent category.

For example:

mode of transportation

Bicycle
  - Classic bicycle
  x Mountainbike
  x Race cycle
  - Trike
  - ...

but not:

mode of transportation

Bicycle
  - Classic bicycle
  x Mountainbike
  - Race cycle
  - Trike
  - ...
Boat
  x Canoe
  - Ferry
  - Skiff
  - U-boat
  - ...

I have been looking all over for this functionality, but I can't seem to find a module that allows this. For the moment it doesn't even look like drupal allows the restriction of selection of only terms from one parent.

Comments

Hierarchical Select should be

smk-ka's picture

Hierarchical Select should be able to do this.

-Stefan

Thanks for your reply. I am

alduya's picture

Thanks for your reply. I am currently using Hierarchical Select and although it is a very good module with a lot of options, it does not provide the functionality to limit the selection of child terms to one parent term.

Taxonomy

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: