Monday, June 2, 2008

migrating a website from wordpress to drupal

This can be done in many ways:

lets see the pros n cons of few of such methods here:-

1) Using drupal\s plug-in / module

Wordpress import

This module allows us to import a Wordpress blog into Drupal from a WordPress eXtended RSS file.

Features:

  • Wordpress posts are imported as nodes of type Story or Blog.
  • Wordpress Pages are imported as nodes of type Page
  • Only superuser(admin) can perform the import.
  • New taxonomies are automatically created for Wordpress categories and tags.
  • Comments and trackbacks are imported as Drupal comments
Known issues:
  • Blogroll are not yet supported
  • attachment are not yet supported

2) Using another drupal\s plug-in / module

wp2drupal

Features:

  • Posts, comments, categories, pages and users are migrated. wp2drupal respects unpublished and private settings so no non-public information will be revealed to unauthorized eyes after migration.
  • You can, specify node types of imported posts and pages, each imported string can be run through custom string handling function etc.
  • flexible URL redirection mechanism.

Known issues:

  • Well tested with drupal4.7. For 5.x its quiet complicated process.
  • you will need to enable set_time_limit() function to let migration process run longer than 30 seconds.
  • can't handle multi-user mega-blogs.

3) Writing few manual scripts & then using drupal plug-ins to load data

  • Setup the drupal site
  • Make the CCKs, categories & their dependencies mapped correctly.
  • Migrate wordpress users to drupal users DB with all the user fields coming to drupal profile fields using manual PHP script.
  • Generate CSVs for wordpress data (posts, pages, comments, tags, categories etc etc).
  • Now load the CSV files into drupal CCKs using the node import module.

Known issues

  • May need data cleansing.
  • Max memory/time limits needed to be updated.
  • URL aliasing/ redirection issues

Advantages:

  • Wordpress posts/pages can be loaded into user chosen node/content types.
  • Any user who have required admin rights can perform the migration
This might be useful for many people who are working on migration related projects.

No comments:

Post a Comment