"如何从 WordPress迁移到Drupal上

Published on Aug. 22, 2023, 12:06 p.m.

需要的模块一个是trackback(wordpress导入的时候必需的)模块,另一个是wordpress_import模块
trackback
http://drupal.org/project/trackback
WordPress import

This module imports a WordPress blog into Drupal from a WordPress eXtended RSS (WXR) file.

http://drupal.org/project/wordpress_import
Wordpress import 依赖的模块:
Ctools
下载:http://drupal.org/project/ctools
有了这个两个模块,从WP把数据导入drupal就非常方便了。不过导入完成后内容里的图片还用的是以前的绝对路径。于是,接着把图片手动传过去 了,然后去数据直接做了个update replace(update node_revisions set body = replace(body,’WP地址’,”),类似这样一句sql.)。
WP2Drupal
=========

Due to its limited use I have not needed to use it in over a year. With my other obligations increasing I am making this module available for anyone to take over who has the time to continue working on it.With this module you can import your site from WordPress to a clean Drupal install. Please note that it has not been tested with anything newer than WordPress 2.6.### Ancestory

Originally created by Borken Bernard for Drupal 4.7, it was updated to support Drupal 5 by teodorani and then upgraded to work with Drupal 6 by DenRaf. This a continuation of DenRaf’s code from his blog announcement on June 19th, 2008.Note: While the project has been available in versions for Drupal 5 and older, only Drupal 6 and newer will be supported.### Goals

The goals of the project are simple:* Provide a method of importing a WordPress blog into Drupal. * Make it feature complete for all core WordPress data. * Make it easy to use. * Long term goal: merge it into an all-in-one migration tool, e.g. maybe Migrate.

In Comparison to WordPress_Import

The WordPress_Import module work towards a similar goal, but there are several differences:* WordPress_Import uses an WXR export file from WordPress whereas WP2Drupal interacts directly with the database. * WP2Import has greater flexibility with the import:
+ You can use Path_Redirect to catch the old URLs but still use PathAuto to give them new URLs; GlobalRedirect will make it even more transparent
+ You can (optionally) clear out (truncate) existing content tables to start with a fresh copy of your content * WordPress_Import is somewhat more user-friendly.

Ultimately, though, WP2Drupal should be merged into a more useful all-in-one migration tool.