custom content migrations to drupal 8
play

Custom Content Migrations to Drupal 8 Getting your stuff into - PowerPoint PPT Presentation

Custom Content Migrations to Drupal 8 Getting your stuff into Drupal 8 Michael Anello DrupalEasy/Anello Consulting, Inc. drupaleasy.com ultimike on drupal.org (drupal.org/u/ultimike) @ultimike Drupal 8 core contributor -


  1. Custom Content Migrations to Drupal 8 Getting your stuff into Drupal 8

  2. Michael Anello ● DrupalEasy/Anello Consulting, Inc. ● drupaleasy.com ● ultimike on drupal.org (drupal.org/u/ultimike) ● @ultimike ● Drupal 8 core contributor - migration system ● Lead instructor - Drupal Career Online

  3. Migration Basics 101

  4. Migration Basics 101 Getting Mapping Processing Setting Source Destination

  5. Migration Basics 101 Getting Mapping Processing Setting Getting Mapping Processing Setting Source Destination Getting Mapping Processing Setting Getting Mapping Processing Setting

  6. Migration Basics 101 Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Source Destination Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting

  7. Migration Basics 101 60+ Getting Mapping Processing Setting Getting Mapping migrations! Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting For simple Source Destination Getting Mapping Processing Setting Getting Mapping Processing Setting core D6 to D8 Getting Mapping Processing Setting upgrade. Getting Mapping Processing Setting Getting Mapping Processing Setting

  8. Migration Basics 101 Getting Mapping Processing Setting Source Destination

  9. Migration, Drupal Style

  10. Content + Configuration

  11. Migration, Drupal Style ● House of Pain ● The Whole Enchilada ● Migration by Subtraction ● Migration Satisfaction

  12. Migration, Drupal Style - House of Pain ● Manually migrate content (copy/paste) ● Pros ○ Allows for real-time content auditing ● Cons ○ Uhhh - it's manual.

  13. Migration, Drupal Style - The Whole Enchilada ● Drupal 8 core upgrade path ● Pros ○ Easiest ● Cons ○ Doesn't allow for refactoring, only modules with migration classes supported.

  14. Migration, Drupal Style - Migration by Subtraction ● Modified Drupal 8 core upgrade ● Pros ○ Relatively easy, allows for limited customization ● Cons ○ Dependencies, normally doesn't allow full refactoring

  15. Migration, Drupal Style - Migration Satisfaction ● Custom migration ● Pros ○ Get what you need, modified as you need it, allows for full refactoring ● Cons ○ Requires learning things you should probably know anyway.

  16. Migration, Drupal Style ● House of Pain ● The Whole Enchilada ● Migration by Subtraction ● Migration Satisfaction

  17. Migration, Drupal Style - Details and Demos

  18. Details and Demos - House of Pain ● Create content inventory ● Train authors/writers/editors ● Back away slowly

  19. Details and Demos - The Whole Enchilada ● Start with an empty Drupal 8.1+ site. ● Enable Migrate, Migrate Drupal, Migrate Drupal UI (core) modules. ● Go to /upgrade, enter source site information ● Click buttons

  20. Migration Basics 101 Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Source Destination Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting

  21. Details and Demos - Addition by Subtraction ● Start with an empty Drupal 8.1+ site. ● Enable Migrate, Migrate Drupal (core), Migrate Upgrade, and Migrate Plus (contrib) modules. ● Run drush migrate-upgrade --configure-only to create configurations ● Export/package configurations in custom module. ● Remove/modify configurations. ● Run migration.

  22. Migration Basics 101 Getting Mapping Processing Setting Getting Mapping Processing Setting Source Destination Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting

  23. Details and Demos - Migration Satisfaction ● Start with an empty Drupal 8.1+ site. ● Enable Migrate, Migrate Drupal (core), Migrate Tools, and Migrate Plus (contrib) modules. ● Build Drupal 8 site. ● Figure out how Drupal 6/7 content maps to new site. ● Build custom migrations. ● Run custom migrations.

  24. Migration Basics 101 Getting Mapping Processing Setting Getting Mapping Processing Setting Getting Mapping Processing Setting Source Destination

  25. Migration Satisfaction - Live Demo!

  26. Live Demo - Overview ● Move only content (no config) from a real Drupal 6 site into Drupal 8, with some tweaks. ○ Change content type ("audio" to "podcast") ○ Change field names ("field_embed" to "field_audio_urls") ○ Keep existing text format (Markdown) ● "Build" Drupal 8 site and configure. ● Create custom migration. ● Run custom migration.

  27. Live Demo Setup Notes ● Fresh Drupal 8.2.x site ● Standard installation profile ● Contrib modules: Admin Toolbar, Markdown, Libraries, Migrate Tools, Migrate Plus ● Configure new text format ● Create new content type

  28. Migration Basics 101 Getting Mapping Processing Setting Source Destination

  29. Custom module code available at: https://github.com/ultimike/drupal8migrate

  30. Blog post with full details for this demo: https://www.drupaleasy.com/d8migrate

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend