migrate_plus.migration.d7_node_materiau.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. id: d7_node_materiau
  2. label: Node Materiau
  3. migration_group: d7_materio
  4. audit: true
  5. migration_tags:
  6. - Drupal 7
  7. - Content
  8. - Materio
  9. deriver: Drupal\taxonomy\Plugin\migrate\D7TaxonomyTermDeriver
  10. source:
  11. plugin: d7_node_materiau
  12. node_type: materiau
  13. destination:
  14. plugin: entity:node
  15. process:
  16. # nid: nid
  17. type:
  18. plugin: default_value
  19. default_value: materiau
  20. title: title
  21. field_short_description: field_nature_titre
  22. field_migration:
  23. plugin: default_value
  24. default_value: 'migration_imported'
  25. body:
  26. plugin: iterator
  27. source: field_description
  28. process:
  29. value: value
  30. format:
  31. plugin: default_value
  32. default_value: wysiwyg
  33. langcode: language
  34. field_memo: field_memo
  35. field_workflow:
  36. plugin: static_map
  37. source: workflow
  38. map:
  39. 1: "workflow_creation"
  40. 2: "workflow_hidden"
  41. 3: "workflow_visible"
  42. 4: "workflow_imported"
  43. 5: "workflow_edited"
  44. field_thesaurus:
  45. plugin: migration_lookup
  46. migration: d7_taxonomy_term_thesaurus
  47. source: field_onthologie
  48. field_tags:
  49. plugin: migration_lookup
  50. migration: d7_taxonomy_term_tags
  51. source: field_tags_libres
  52. field_manufacturer:
  53. plugin: migration_lookup
  54. migration: d7_taxonomy_term_company
  55. source: field_company_fab
  56. field_distributor:
  57. plugin: migration_lookup
  58. migration: d7_taxonomy_term_company
  59. source: field_company_distrib
  60. field_video:
  61. plugin: iterator
  62. source: field_video_filter
  63. process:
  64. value: url
  65. # field_materiau_images: field_materiau_image
  66. # field_attachments: field_attachments
  67. # field_linked_materials: field_materiau_ref
  68. # field_linked_breves: field_breve_ref
  69. # field_famille: field_famille
  70. # field_index: field_identifiant
  71. # field_reference: field_reference_materio
  72. # just archives
  73. # : field_localisation
  74. # TODO: need to find an alternative or rebuild the custom module
  75. # : field_location
  76. migration_dependencies:
  77. required:
  78. - d7_taxonomy_term_thesaurus
  79. - d7_taxonomy_term_tags
  80. - d7_taxonomy_term_company
  81. - d7_taxonomy_term_showroom