Hi!

I have tons of content with term reference on each node.
There was no hierarchy in the terms. But I changed it to create a tree :

before:
dog
cat
mouse
David
Jhon

After:
animal
-dog
-cat
-mouse
People
-David
-Jhon

I want my content to be linked to "Animal" or "People" term. The content I created before the change has no parent. How can I update all my content to do that ? I can't update all my old content one by one, it would takes ages.

Comments

Tourista created an issue.

amit0212’s picture

Enable the Term Reference Tree module.
Go to the Manage Fields tab of any fieldable entity (such as a content type, taxonomy term, or user).
Add a new field with a type of Term Reference.
In the widget select box, select Term reference tree.

Note that you can also change any Term Reference field to use the Term Reference Tree widget, by editing that field and selecting Term Reference Tree on that field's Widget Type tab.

If you want to filter by a view, make sure the view includes the taxonomy term ID, and that the items per page are set to unlimited, as the widget will only display the items from the first page of results.