0

I have an issue where I want to keep sub category inside a parent category. Say, for preferred vehicle I want a checkbox like this in node creation form

[]Car
  []Volkswagen
  []Toyota
[]Bike
  []Kawasaki
  []Harley Davidson

Is there a way to implement this using taxonomy?

0

Taxonomy is hierarchical by nature, you can create category/sub stuff in it.

AFAIK, there is not any field widget as you describe in drupal core with taxonomy field. Maybe some contrib module (have a look at term_reference_fancytree ).

You also may define your own and generate a field widget dedicated to taxonomy.

  • Thank you, it does fulfill my use case – Aves2432 Sep 17 '19 at 21:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.