How to migrate content to Drupal using XML files
-
Upload
blake-newman -
Category
Documents
-
view
1.593 -
download
1
description
Transcript of How to migrate content to Drupal using XML files
Welcome Developers to KSR
February 12, 2014 2
How to migrate content to Drupal using XML files
By: Veronica Ramirez
For this webinar, tweet using #inQbationKSR and mention @inQbationCo
February 12, 2014 3
Content migration
The complexity of a migration shows the importance of a strong web governance.
To take into account:
• Relations within content
• Size and complexity
• Resources: images, attachments, videos, links, etc
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 4
Migrate content to Drupal using XML You will need:
• Feeds module (https://drupal.org/project/feeds)
• Feed XPath Parser module (https://drupal.org/project/feeds_xpathparser)
• XML files with the content that will be migrated.
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 5
Steps
1. Install the modules
2. Enable the following modules: Feeds, Feeds Admin UI and Feeds XPath Parser
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 6
Steps
3. Create a folder in the sites/default/files path called Feeds
4. Place the XML file in the following path: sites/default/files/feeds, which is the path to the folder created in step 3.
5. In your Drupal backend (you must be logged in as administrator), go to Structure > Feeds Importer > Add Importer
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 7
Steps
6. In Name field, give a name to the importer: Veronica Ramirez
Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 8
Setting up the feed importer
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 9
Setting up the feed importer
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 10
Setting up the feed importer
9. Click on Change next to Fetcher and select the first option: File Upload and Save. After Saving, you should have File Upload under Fetcher.
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 11
Setting up the feed importer
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 12
Setting up the feed importer
11.Click on Change next to Parser and then select the XPath XML parser option and Save. After saving, you should have XPath XML Parser under Parser.
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 13
Setting up the feed importer
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 14
Setting up the feed importer
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 15
Setting up the feed importer
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 16
Steps
18.In the URL, add /import to the main domain. Veronica Ramirez
Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 17
Steps XML with one level of children XML without one level of children
February 12, 2014 18
Steps
19.When ready, click on the Import button. You will see a progress bar and at the end, information related to the import.
To verify if your content was imported, click on Content and filter by your content type.
Veronica Ramirez Project Manager Developer inQbation Specialties: Computer Science Interactive Design Drupal Wordpress UX Tweet using #inQbationKSR
February 12, 2014 19
Thank you!