Experimental Project

This is a sandbox project, which contains experimental code for developer use only.

Since there's no obvious way of saving term hierarchy when creating a node, this module was created.
The user creates 2 term reference fields, referencing the same taxonomy vocabulary.
Then, using this module you can set which field is the "parent" term and which one is the "child" term field. When saving the node, taxonomy terms are created and their hierarchy is saved.

Instructions on how to use:
a UI is not yet available but it's very easy to customize.

line 8 of term_reference_hierarchy.module
replace 'content' with your content type machine name.

line 9 of term_reference_hierarchy.module
replace field_tag_lvl_1 with the machine name of the field you want to declare as you "parent" term.

line 10 of term_reference_hierarchy.module
replace field_tag_lvl_2 with the machine name of the field you want to declare as you "child" term.

Module developed by http://yawd.eu

Maintainers for Term Reference Hierarchy

  • ppetrid - 1 commit
    last: 31 weeks ago, first: 31 weeks ago
  • aristeides - 4 commits
    last: 47 weeks ago, first: 47 weeks ago

Issues for Term Reference Hierarchy

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here