popsu_migrate: d7_node_programme title, text intro, paragraphe texts, files OK

This commit is contained in:
2021-04-15 23:21:04 +02:00
parent 721e626e1e
commit 6edb82755b
4 changed files with 360 additions and 7 deletions

View File

@@ -39,12 +39,40 @@ process:
plugin: default_value
default_value: 'wysiwyg'
# field_textes (PARAGRAPH)
# 'field_texte/value': text
# 'field_texte/summary': text_summary
# field_titre: title
# 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'
# field_popsu_special_insert_intro
# field_popsu_special_insert
# field_fichier:
# plugin: migration_lookup
# migration: d7_allpublicfiles
# source: fichiers
field_fichier:
plugin: sub_process
source: fichiers
process:
target_id:
plugin: migration_lookup
migration: d7_allpublicfiles
source: fid
no_stub: true
display: display
description: description
migration_dependencies:
required:
- d7_allpublicfiles
- d7_users
- d7_paragraphe_texts_programme

View File

@@ -0,0 +1,38 @@
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