- π©π°Denmark ressa Copenhagen
As an alternative to Paragraphs, in case a more basic solution might work, migrating nested multivalue data into Custom Field β is easy. A structure like this:
"hyperlink": [ { "linkurl_source": "https://drupal.org", "linktext_source": "Drupal" }, { "linkurl_source": "https://gitlab.com/", "linktext_source": "GitLab" } ]
... can be mapped with this:
fields: - name: hyperlink selector: hyperlink [...] process: field_hyperlink: plugin: sub_process source: hyperlink process: linkurl: linkurl_source linktext: linktext_source
From Migrate multivalue fields into unlimited Custom Fields field β .
- π©πͺGermany Peter Majmesku π©πͺDΓΌsseldorf
I am working on a Drupal 10 to Drupal 10 migration. All the examples here did not help. Looks like they are related to Drupal 7.
My solution was an own migrate process plugin. You can find it here: https://git.drupalcode.org/project/sites_migrator/-/blob/1.0.x/src/Plugi...
The plugin must be implemented into the process like this:
field_paragraphs: plugin: paragraphs_sub_process source: field_paragraphs migration: - wg_paragraph_media_text process: target_id: '0' target_revision_id: '1'
I hope this example helps somebody.
- π§πͺBelgium baikho Antwerp, BE
#35 works fine, but made a slight adjustment for multiple migrate sources π ParagraphsSubProcess plugin does not merge paragraph items when using += operator Active