'field_tags' => array(
'und' => array(
0 => array(
'tid' => '1',
),
),
),
My terms are exported by uuid_term and it works well. However when importing into another server, [tid] would not remain the same of course. But my nodes are referred to term's [tid] not [uuid]... which makes it a mess now - -
Is that possible that make exported nodes referred to [term-uuid]?
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | uuid_features-node_ref_term_uuid-1812876-7.patch | 3.22 KB | hswong3i |
Comments
Comment #1
zhangx1a0 commentedNever mind. After reading the codes I think it can be done by implementing hooks provided by uuid_node. I am pasting my codes here in case anyone would need:
Comment #2
leeomaraRelated issue, but from the Node Export side: #1896384: Entity references and taxonomy terms break when importing nodes
Comment #3
busla commentedI think this issue is critical. Terms are used as a relationship method to other entities but the module doesn´t move this relationship to the feature since nodes and terms are related by the tid. Am I maybe misunderstanding the purpose of the module?
Is it only to be used to preserve the term name and hierarchy but not the relationship to the nodes it belongs to?
Comment #4
saltednutAgreed - its not full UUID integration if we don't support this. Marking as critical.
@zhangx1a0 can you provide a patch for the solution in #1?
Comment #5
saltednutComment #6
hswong3i commentedI will try to roll a patch for #1 later ;-)
Comment #7
hswong3i commentedMost likely idea coming from #1, but revamp from hook alter to default functionality in uuid_node.features.inc, also handle protential i18n and multiple terms per field.
Patch via GIT branch 7.x-1.x and confirm as functioning.
Comment #8
jeqq commented#7: uuid_features-node_ref_term_uuid-1812876-7.patch queued for re-testing.
Comment #9
hswong3i commentedConfirm #7 able to apply to latest 7.x-1.x-dev together with following issues:
It is now applied to DruStack 7.x-23.x and I will detail confirm if it works as expected
Comment #10
saltednutIn an effort to get a bunch of these outstanding patches that people are using into one, this issue is being closed.
See: #2149949: Multiple Patches need to be committed to UUID Features and have been rolled into one.
Comment #11
saltednut