migration breve, migration materiau:linked_breve; module pagerer, cshs, views_ef_fieldset
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
id: d7_node_breve
|
||||
label: Node Breve
|
||||
migration_group: d7_materio
|
||||
audit: true
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Content
|
||||
- Materio
|
||||
deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
|
||||
|
||||
source:
|
||||
plugin: d7_node_breve
|
||||
node_type: breve
|
||||
|
||||
destination:
|
||||
plugin: entity:node
|
||||
|
||||
|
||||
process:
|
||||
# nid: nid
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: breve
|
||||
title: title
|
||||
field_migration:
|
||||
plugin: default_value
|
||||
default_value: 'migration_imported'
|
||||
body:
|
||||
plugin: iterator
|
||||
source: field_description
|
||||
process:
|
||||
value: value
|
||||
format:
|
||||
plugin: default_value
|
||||
default_value: wysiwyg
|
||||
langcode: language
|
||||
field_memo: field_memo
|
||||
field_workflow:
|
||||
-
|
||||
plugin: default_value
|
||||
source: workflow
|
||||
default_value: 2
|
||||
-
|
||||
plugin: static_map
|
||||
default_value: 2
|
||||
map:
|
||||
1: "workflow_creation"
|
||||
2: "workflow_hidden"
|
||||
3: "workflow_visible"
|
||||
4: "workflow_imported"
|
||||
5: "workflow_edited"
|
||||
field_thesaurus:
|
||||
plugin: migration_lookup
|
||||
migration: d7_taxonomy_term_thesaurus
|
||||
source: field_onthologie
|
||||
field_tags:
|
||||
plugin: migration_lookup
|
||||
migration: d7_taxonomy_term_tags
|
||||
source: field_tags_libres
|
||||
field_video:
|
||||
plugin: iterator
|
||||
source: field_video_filter
|
||||
process:
|
||||
value: url
|
||||
field_linked_materials:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: linked_materials
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: d7_node_materiau
|
||||
no_stub: true
|
||||
|
||||
# field_visuel: field_visuel
|
||||
|
||||
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d7_taxonomy_term_thesaurus
|
||||
- d7_taxonomy_term_tags
|
||||
- d7_taxonomy_term_company
|
||||
- d7_taxonomy_term_showroom
|
||||
optional:
|
||||
- d7_node_materiau
|
@@ -37,14 +37,19 @@ process:
|
||||
langcode: language
|
||||
field_memo: field_memo
|
||||
field_workflow:
|
||||
plugin: static_map
|
||||
source: workflow
|
||||
map:
|
||||
1: "workflow_creation"
|
||||
2: "workflow_hidden"
|
||||
3: "workflow_visible"
|
||||
4: "workflow_imported"
|
||||
5: "workflow_edited"
|
||||
-
|
||||
plugin: default_value
|
||||
source: workflow
|
||||
default_value: 2
|
||||
-
|
||||
plugin: static_map
|
||||
default_value: 2
|
||||
map:
|
||||
1: "workflow_creation"
|
||||
2: "workflow_hidden"
|
||||
3: "workflow_visible"
|
||||
4: "workflow_imported"
|
||||
5: "workflow_edited"
|
||||
|
||||
field_thesaurus:
|
||||
plugin: migration_lookup
|
||||
@@ -67,14 +72,32 @@ process:
|
||||
source: field_video_filter
|
||||
process:
|
||||
value: url
|
||||
field_linked_materials:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: linked_materials
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: d7_node_materiau
|
||||
no_stub: true
|
||||
field_linked_breves:
|
||||
-
|
||||
plugin: skip_on_empty
|
||||
method: process
|
||||
source: linked_breves
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: d7_node_breve
|
||||
no_stub: true
|
||||
|
||||
# field_materiau_images: field_materiau_image
|
||||
# field_attachments: field_attachments
|
||||
# field_linked_materials: field_materiau_ref
|
||||
# field_linked_breves: field_breve_ref
|
||||
|
||||
# field_famille: field_famille
|
||||
# field_index: field_identifiant
|
||||
# field_reference: field_reference_materio
|
||||
|
||||
# just archives
|
||||
# : field_localisation
|
||||
# TODO: need to find an alternative or rebuild the custom module
|
||||
@@ -86,3 +109,5 @@ migration_dependencies:
|
||||
- d7_taxonomy_term_tags
|
||||
- d7_taxonomy_term_company
|
||||
- d7_taxonomy_term_showroom
|
||||
optional:
|
||||
- d7_node_breve
|
||||
|
Reference in New Issue
Block a user