Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
on the D7 version we have a Parent: GUID target. In D8 version of Feeds, we have only a Parent term target.
If we have terms with the same name (hierarchical terms), we can't choose a specific term.
How can I add a target to the Parent GUID ?
Thanks for your help.
Comment | File | Size | Author |
---|---|---|---|
#8 | 2933171-reference-by-item-guid.png | 62.3 KB | MegaChriz |
Comments
Comment #2
kumkum29 CreditAttribution: kumkum29 commentedOups...I don't see the sub target in mapping area.
We can choose a UUID target for the parent. I will test with this option.
Comment #3
kumkum29 CreditAttribution: kumkum29 commentedComment #4
kumkum29 CreditAttribution: kumkum29 commentedI reopen this issue because the UUID target don't work in my case.
Is there possible to have a Parent GUID in the Parent Term target ?
Thanks.
Comment #5
kumkum29 CreditAttribution: kumkum29 commentedHere an example if we have a hierarchical taxonomy and terms with same name:
Actually, we don't have a Parent:GUID target. Then, we can't choose the parent term if the range & model have the same name...
With an ID (in csv file) and a Parent GUID target, we solve the problem.
The others sub-targets of Parent Term aren't help us: UUID (not known on import), Description, Name...
Thanks for your help.
Comment #6
kumkum29 CreditAttribution: kumkum29 commentedComment #7
kumkum29 CreditAttribution: kumkum29 commentedHello,
Actually, is there any reason why the Parent : GUID target isn't available ?
I don't see how to implement this target in a patch (i'm not a confirmed developper). On import, which hook can I use to target a Parent GUID?
Thanks for your help.
Comment #8
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedCan you try the patch from #2788631: Add possibility to use GUID as unique entityreference target and report back if that works? That patch allows you to reference a previously imported entity by item GUID.
See also this image:
Comment #9
demonde CreditAttribution: demonde commentedI am working with the dev version with the applied patch.
The import of terms seems to work correct with parents child relation.
But the terms donnot appear in the taxonomy listing. If I simply edit and save the root parent, the parent and its child terms will appear in the taxonomy listing.
The reason for this is that the root terms are not entered in the taxonomy_term_hierarchy table with the parent value 0.
Comment #10
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedIs this still an issue?
Comment #11
g.paluch CreditAttribution: g.paluch commented# 8 works but with only one parent. I can't get it to work on taxonomy set like this: VEHICLE: model>make>year. The third column"year" (top parent) becomes a parent on the same level as "Make". Any advice on how can I accomplish this? Thanks