Problem/Motivation
Hi and thank you very much for this module!
I recently created #3624952: Add hierarchy to the CSV export and allow import of exported CSV in Taxonomy Manager and wondered if Enhanced Taxonomy Manager is eventually able to solve this?
Seems only the import of taxonomy term fields is missing here? (Without following references).
Does this module allow creating taxonomy terms from import without providing tid, language and other technical properties?
I think there are two typical use-cases:
- Creating taxonomy terms freshly from a different project, so TID etc. need to be newly created
- Copying taxonomy terms from a copy of the project (e.g. dev, staging, ...)
Thanks!!
Comments
Comment #2
deadnorth commentedThanks! To your questions:
-- Laptops | Portable computers. Names, hierarchy and descriptions can be moved to another project today.I'm working on that now. The CSV export will include the vocabulary's own fields, and Import gets a CSV tab that reads that file back. Every row creates a new term, parents are matched by their path of names, and entity references are left out, as you suggested. That covers both of your use cases without term IDs. I'll post here when it is committed.
Comment #5
deadnorth commentedThis is in 2.2.3:
composer require 'drupal/etm:^2.2.3', then clear caches.Export: on the tree page, Export > CSV Download now lists the vocabulary's own fields next to Name, Description, Status, Weight and Parent Path. Tick the ones you want; they are written under their machine names.
Import: Import now has a CSV tab. Choose the exported file, or paste CSV, and press Import Terms. For example:
|.Both of your cases work: creating terms fresh in another project, and copying terms from a dev or staging copy into another site.
Known limits, which the next release will address: up to 5,000 rows per import; a term with several parents is exported once per parent; a
>inside a term name breaks parent paths.Thanks for the suggestion. If anything in your data doesn't come through, please reopen this with a few rows of the CSV.