Hi,
Thanks for this module. It almost does exactly what I need.
I need to import a large taxonomy of 15,000+ terms. Many have more than one parent. I thought I could make a test taxonomy with terms with multiple parents and export it so I could see how to structure the code for importing. However, when I do this, the terms with multiple parents do not have multiple parents any more after importing. See attached figure.
So, is it possible to import terms with multiple parents? If so, what is the correct syntax? I have tried various things: repeating the line with the second parent ID, leaving terms blank etc but nothing I have tried works.
Thanks for any pointers...
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | import test.png | 152.82 KB | namwebs |
| #4 | 2909158-4-import-terms-with-multiple-parents.patch | 5.35 KB | el1_1el |
| import.png | 182.96 KB | namwebs |
Comments
Comment #2
el1_1el commentedI dont think I ever looked at terms with multiple parents. And after a quick test, it doesnt work. It just grabs the first parent. I'll change this to a feature request and look into it
Comment #3
namwebs commentedThat'd be great, many thanks.
Comment #4
el1_1el commented@namwebs could you please try this patch and let me know? I tested on a very simple taxonomy and it sounds like yours would be much better. Thanks!
Comment #6
el1_1el commentedI added this feature and fixed some bugs i found while working on it. released to dev branch. Please verify its working before i tag as alpha2. Thanks!
Comment #7
namwebs commentedHi el1_1el,
Thanks for the dev version. I've tested it on a simple taxonomy and it seems to have some issues. See attached file.
Comment #8
el1_1el commentedHmm, that is expected behavior if you imported the exported terms into the same drupal instance. The module does not overwrite existing terms. I did a similar test but deleted the existing terms before reimporting them. If you want to copy the same terms into the same instance, you have to uncheck export IDs.
Does that make sense?
Comment #9
namwebs commentedOkay... I was importing into a different taxonomy but, yes, it makes sense! I'll test again.
Comment #10
namwebs commentedYes, it seems to be working as it should. Thanks.
Comment #11
el1_1el commented