Wordpress Importer (customized for LFA project)
Go to file
Marc Remolt 39b482f99f Allow duplicate titles on importing blog posts
* the unique post_id from WordPress now gets appended if the title is already taken
2011-06-03 11:02:25 +02:00
lib Allow duplicate titles on importing blog posts 2011-06-03 11:02:25 +02:00
spec Allow duplicate titles on importing blog posts 2011-06-03 11:02:25 +02:00
.gitignore Initial commit 2011-06-01 20:23:29 +02:00
.rspec Conversion in a gem finished 2011-06-02 14:41:31 +02:00
Gemfile Conversion in a gem finished 2011-06-02 14:41:31 +02:00
Gemfile.lock Conversion in a gem finished 2011-06-02 14:41:31 +02:00
MIT-LICENSE Initial commit 2011-06-01 20:23:29 +02:00
Rakefile project setup 2011-06-01 21:07:20 +02:00
README.rdoc added explanation on ignoring drafts and duplicate titles to readme 2011-06-02 16:07:25 -07:00
refinerycms-wordpress-import.gemspec Conversion in a gem finished 2011-06-02 14:41:31 +02:00

= Refinerycms-wordpress-import

This project is an importer for WordPress XML dumps into refinerycms(-blog). 

So far, only blog-relevant data gets imported, I'm working on the cms pages part. 

Draft posts and posts with duplicate post titles are ignored (for now)

== Installation

As there is no official release out yet, just add this repos to your projects Gemfile:

  gem 'refinerycms-wordpress-import', :git => 'git://github.com/mremolt/refinerycms-wordpress-import.git'

== Usage

There are 3 rake tasks

* wordpress:reset_blog - This one basically deletes all data from blog relevant tables (taggings, tags, blog_comments, blog_categories, blog_posts). Use this one first, if you want a clean import of your old blog. 
* wordpress:import_blog[file_name] - This one does all the heavy work of parsing the dump and importing the data into refinery tables. The param is a path to the dump file.
* wordpress:reset_and_import_blog[file_name] - This one combines the two previous tasks.

== Feedback

This is a very new gem. It manages to import my own blog and a standard WordPress 3.1 dump with some sample data. 

If you want to help make it more stable, please throw your own WP dumps against it and see what happens. If you encounter any bugs, please file a bug report with a sample dump that breaks this gem. 

For extra karma, fork it, fix it yourself and send a pull request! ;-)