Taxonomy hierarchy utility

Component ID

2009926

Component name

Taxonomy hierarchy utility

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

84

Component created

Component changed

Component body

This module has a generic name, but it provides one utility function for website administrators: it can undo the 'multiple hierarchy' structure of a vocabulary, by cloning all terms with multiple parents, into multiple terms, each having one parent.

As an example:

Say you have a vocabulary consisting of cars;

  • Chevy
    • grey
    • red
  • Ford
    • black
    • brown

...and a content editor on your site wants to add 'white' to both car brands... and decides to be quick by adding one term called "white", with two parents.

This has the following effects:

  • You lose the ability to rearrange terms using drag and drop on the 'list terms' page;
  • The several 'white's you see in the list cannot have different properties - since they are actually the same term.

Also, if the vocabulary has a lot of terms with equal names, there is no good way to see which exact term has multiple parents.

This module gives you a simple admin screen showing which terms have multple parents, and an option to split the one 'white' term that appears in two places, into two separate 'white' terms.

Module status

The module doesn't need much more work, since its scope is simple and well defined (except possibly making the 'cloning' process use the Batch API).

Any ideas / requests about merging this functionality into another module, or adding/merging other taxonomy/hierarchy related functions into this module, are welcome.