popsu_migrate: d7_node_programme title, text intro, paragraphe texts, files OK
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
Reference in New Issue
Block a user