popsu_migrate: D7ParagrapheTextsProgramme replaced by on the fly paragraphe creation

This commit is contained in:
2021-04-16 15:10:08 +02:00
parent 65b11b15e4
commit eba6068747
6 changed files with 71 additions and 122 deletions

View File

@@ -40,17 +40,27 @@ process:
default_value: 'wysiwyg'
# https://understanddrupal.com/articles/introduction-paragraphs-migrations-drupal
pseudo_field_textes:
plugin: migration_lookup
migration: d7_paragraphe_texts_programme
source: text_paragraphe_id
field_textes:
plugin: sub_process
source:
- '@pseudo_field_textes'
process:
target_id: '0'
target_revision_id: '1'
# pseudo_field_textes:
# plugin: migration_lookup
# migration: d7_paragraphe_texts_programme
# source: text_paragraphe_id
# field_textes:
# plugin: sub_process
# source:
# - '@pseudo_field_textes'
# process:
# target_id: '0'
# target_revision_id: '1'
# field_textes:
# plugin: sub_process
# source:
# - text_paragraphe
# process:
# target_id: '0'
# target_revision_id: '1'
field_textes: text_paragraphe
# field_popsu_special_insert_intro
# field_popsu_special_insert
@@ -75,4 +85,3 @@ migration_dependencies:
required:
- d7_allpublicfiles
- d7_users
- d7_paragraphe_texts_programme

View File

@@ -1,38 +0,0 @@
id: d7_paragraphe_texts_programme
label: Paragraphe texts Programme
migration_group: popsu
audit: true
migration_tags:
- Drupal 7
- Content
- Popsu
source:
plugin: d7_paragraphe_texts_programme
node_type: popsu_special
batch_size: 500
ids:
nid:
type: integer
destination:
plugin: 'entity_reference_revisions:paragraph'
default_bundle: textes
process:
# created: created
# changed: changed
uid:
plugin: default_value
default_value: 34
'field_texte/value': text
'field_texte/summary': text_summary
field_titre: title
migration_dependencies:
required:
- d7_allpublicfiles
- d7_users