id: d6_edlp_pages label: Edlp Drupal 6 pages migration_tags: - Drupal 6 deriver: Drupal\node\Plugin\migrate\D6NodeDeriver migration_group: d6_edlp source: plugin: d6_edlp_pages node_type: page process: # In D6, nodes always have a tnid, but it's zero for untranslated nodes. # We normalize it to equal the nid in that case. # @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow(). # If you are using this file to build a custom migration consider removing # the nid and vid fields to allow incremental migrations. # nid: tnid # vid: vid type: plugin: default_value default_value: page langcode: plugin: default_value source: language default_value: "und" title: - plugin: get source: title - plugin: skip_on_empty method: row uid: - plugin: migration_lookup migration: d6_edlp_users source: node_uid - plugin: default_value default_value: 1 # status: status created: created changed: changed promote: promote sticky: sticky revision_uid: revision_uid revision_log: log revision_timestamp: timestamp 'body/value': body 'body/format': plugin: default_value default_value: wysiwyg # taxo term -> entity ref terms # use this one for fetchCol in plugin field_entrees: plugin: migration_lookup migration: d6_edlp_entrees source: entrees # taxo term -> entity ref terms # use this one for fetchCol in plugin # field_page_type: # plugin: migration_lookup # migration: d6_edlp_pagetype # source: page_type field_page_type: - plugin: skip_on_empty method: row message: 'Page type is missing, skiping row' source: page_type - plugin: migration_lookup migration: d6_edlp_pagetype # TODO: exclude pages of type notice (will be incorporated directly into the entree taxo term) # # file # # field_mp3 -> field_son # TODO: pour les pieces sonores les fichiers ne sont pas enregistrés dans le champ car trop lourd. Ils sont sous forme de lien dans le corps du texte. Comment normaliser ça ?? field_son: plugin: migration_lookup migration: d6_edlp_allfiles source: sons_fid # # field_visuel -> field_visuel field_visuel: plugin: migration_lookup migration: d6_edlp_allfiles source: visuels_fid status: plugin: default_value default_value: 1 # status: # plugin: static_map # source: workflow # map: # 1: 0 # 2: 0 # 3: 1 # 4: 1 # workflow # field_workflow_generic: # plugin: default_value # default_value: "generique_publie" field_workflow_generic: plugin: static_map source: workflow map: 1: "generique_masque" 2: "generique_masque" 3: "generique_publie" 4: "generique_publie" # fichiers attachés ?? destination: plugin: entity:node migration_dependencies: required: - d6_edlp_users - d6_edlp_entrees - d6_edlp_pagetype - d6_edlp_sons - d6_edlp_allfiles