Skip to content

razeem/feeds-migration

Repository files navigation

Drupal CMS

Drupal CMS is a fast-moving open source product that enables site builders to easily create new Drupal sites and extend them with smart defaults, all using their browser.

Getting started

If you want to use DDEV to run Drupal CMS locally, follow these instructions:

  1. Install DDEV following the documentation
  2. Open the command line and cd to the root directory of this project
  3. Run the following commands:
ddev start
ddev composer install
ddev composer drupal:recipe-unpack
ddev launch

Drupal CMS has the same system requirements as Drupal core, so you can use your preferred setup to run it locally. See the Drupal User Guide for more information on how to set up Drupal.

POC on migration

In this project a proof-of-concept (POC) for content migration into Drupal using the Migrate API and the migrate_plus module is performed.

Site installation

ddev start
ddev composer install
ddev composer drupal:recipe-unpack
ddev launch

Site UUID mismatch

  • Edit the system.site record in the database config table and update the UUID.
  • ddev drush cset system.site uuid "$(cat config/sync/system.site.yml | grep uuid | awk '{print $2}')"

Shortcut set mismatch issue

  • ddev drush entity:delete shortcut_set

Config import

ddev drush cim

Migration commands

  • ddev drush migrate:status
  • ddev drush migrate:import custom_feeds_migration

Overview of Migration Work

A custom migration was set up to import news posts from the NDTV RSS feed (XML format) into Drupal nodes of type news. The migration uses the following configuration:

  • Source: NDTV RSS feed (http://feeds.feedburner.com/ndtvnews-top-stories.xml)
  • Source Plugin: url with http data fetcher and simple_xml parser
  • Fields Mapped: guid, title, publication date, link, summary, image URL
  • Image Handling: Downloads images and attaches them to the node
  • Date Handling: Converts publication date to Unix timestamp
  • Destination: Drupal nodes (content type: news)

The migration configuration is defined in migrate_plus.migration.custom_feeds_migration.yml.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors