Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Content Migration to Drupal 8

230 views

Published on

This presentation covers, how we can migration from multiple resources to Drupal 8. More info here - http://2016.drupalcampdelhi.com/drupal-8-day-training

Published in: Internet
  • Be the first to comment

Content Migration to Drupal 8

  1. 1. Content Migration to D8
  2. 2. Training Team Mohit - Axelerant Vaibhav - Acquia Rohit - Acquia Amit - Acquia
  3. 3. Agenda - Basics of Migration Configuration Entity (YML) - Basics of how to write Source and Process Plugins - Demo code to showcase migrations from Drupal / XML / JSON / Custom Mysql database - Exercise to do migration from a given source (xml, json, mysql db)
  4. 4. Migration Configuration Entity (YML) Heart of the migration is YML file. YML has four important keys, - Id - Source - Process - Destination
  5. 5. Sample YML File
  6. 6. Sample YML File - XML/JSON
  7. 7. Core/Contrib Process Plugins https://www.drupal.org/docs/8/api/migrate-api/migrate-process - get - callback - default_value - concat - migrate
  8. 8. Core/Contrib Source Plugins - XML - JSON - SOAP
  9. 9. Custom Process Plugin
  10. 10. Custom Source Plugin - SQL
  11. 11. Migration related Drush Commands drush migrate-status (ms) drush migrate-import <migration-name> (mi) [--update, --idlist=1,2,4] drush migrate-rollback <migration-name> (mr) drush migrate-reset-status <migration-name> (mrs)
  12. 12. Demo Time - Custom Mysql DB to D8 - XML to D8 - JSON to D8 - D6 to D8
  13. 13. Exercise Time - Users - eyeColor (taxonomy), gender (select list - m/f), about (split in 2 fields), registered (timestamp) - Data - money (prefix $), user_id (map to user),
  14. 14. References - Writing D6 to D8 entity migrations - Drupal 6 to Drupal 8(.1.x) Custom Content Migration

×