Feeds Tamper Term Hierarchy
Part of the Feeds ecosystem · 29 projects
This plugin allows you to import taxonomy terms from a hierarchical structure, such as "Parent > Child > Grandchild," creating terms as needed. It ensures that imported terms are correctly placed within their designated vocabulary and hierarchy.
Tamper plugin to import taxonomy terms with hierarchy support. It creates the taxonomy terms if they don't already exist, respecting the term hierarchy.
In your CSV column, the taxonomy term data can be in this format: "Term1 > Term 2 > Term 3". The "Term 3" would be set to the corresponding taxonomy term reference. "Term 1", "Term 2" and "Term 3" would be created if they didn't already exist.
Terms are matched by name within their parent, not across the whole vocabulary, so "Animals > Dogs > Food" and "Animals > Cats > Food" produce two distinct "Food" terms, one under each branch.
You can combine this tamper plugin with the existing "Explode" plugin if you have multiple taxonomy terms to be assigned to the same field.
Requirements
The module only requires Tamper and the core Taxonomy module. To use it in a Feeds import you also need Feeds Tamper.
How to use the module:
- Install the module as usual
- Add the Taxonomy term field reference to your feeds mapping
- THIS STEP IS CRITICAL: Choose the option "Reference by: Term ID"
- In the Tamper tab, add the "Import Taxonomy Terms Hierarchy" plugin to the same field
- Choose the right delimiter and Vocabulary
- Import the feed as usual
Settings
- Allow terms to be auto created, on by default. Turn it off to import only into an existing hierarchy: values whose terms do not exist are skipped instead of created.
- Match the first term anywhere in the hierarchy, off by default. Turn it on when the source carries partial paths, for example "B > C" for a vocabulary that already contains "A > B > C".
The README covers all of this in more detail.
Depends on
Dependencies of the latest stable release
- Tamper
- taxonomy Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Feeds ecosystem
Most installed first