2017 © Pedro Peláez
 

silverstripe-module silverstripe-wordpressimport

Imports Wordpress content from an exported XML file

image

camfindlay/silverstripe-wordpressimport

Imports Wordpress content from an exported XML file

  • Wednesday, November 1, 2017
  • by camfindlay
  • Repository
  • 1 Watchers
  • 5 Stars
  • 78 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 14 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Wordpress Import Module

Build Status, (*1)

Maintainer Contacts

  • Cam Findlay (Nickname: camfindlay)
  • Damian Mooyman (Nickname: tractorcow)

Requirements

  • mod_rewrite (optional, if you need to cater for old incoming links and are using Apache)
  • SilverStripe Framework & CMS 3.1.x
  • silverstripe/blog 1.*
  • silverstripe/comments

Installation Instructions

composer require camfindlay/silverstripe-wordpressimport

This module currently it only works with silverstripe/blog 1.x., (*2)

WORKAROUND: If you have installed silverstripe 2.x, downgrade to 1.x:, (*3)

composer require silverstripe/blog 1.x

After importing the wordpress .xml file you can safely upgrade to silverstripe/blog 2.x again:, (*4)

composer require silverstripe/blog 2.x

NOTE: After upgrading from blog 1.x to 2.x don't forget to run dev/tasks/BlogMigrationTask as indicated in the silverstripe/blog documentation., (*5)

WARNING: downgrade was only tested on an empty blog, if you have already entered any content on your blog, this may have some unexpected results!, (*6)

Usage Overview

It will change any links to uploaded images and files in your posts that follow the convention "http://yourdomain.com/wp-content/uploads/yyyy/mm/filesname.jpg" to "http://yourdomain.com/assets/Uploads/yyyy/mm/filesname.jpg" which allows you to migrate you uploaded images and files over to SilverStripe assets folder while maintaining images in your posts., (*7)

Optional Rewriting

Add this in your .htaccess file to port old wordpress posts in the form /yyyy/mm/name-of-post/ to new SilverStripe /blog/name-of-post convention., (*8)

RewriteRule ^[0-9]{4}/[0-9]{2}/(.*)$ /blog/$1 [R,L]

Known issues:

  1. Content can lose a lot of the formatting coming from Wordpress.
  2. Perhaps parsing the content through a nl2br might help?
  3. Image captions need to be catered for and styled otherwise they end up looking like un-parse shortcodes.
  4. Currently only works with silverstripe/blog 1.x.

The Versions

01/11 2017

dev-blog2

dev-blog2

Imports Wordpress content from an exported XML file

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

wordpress migration silverstripe blog

07/08 2016

dev-master

9999999-dev

Imports Wordpress content from an exported XML file

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

wordpress migration silverstripe blog

04/02 2016

0.3.2

0.3.2.0

Imports Wordpress content from an exported XML file

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

wordpress migration silverstripe blog

13/09 2015

0.3.1

0.3.1.0

Imports Wordpress content from an exported XML file

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

wordpress migration silverstripe blog

26/01 2014

0.3.1-rc2

0.3.1.0-RC2

Imports Wordpress content from an exported XML file

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

wordpress migration silverstripe blog

26/01 2014

0.3.1-rc1

0.3.1.0-RC1

Imports Wordpress content from an exported XML file

  Sources   Download

BSD-3-Clause

The Requires

 

by Cam Findlay

wordpress migration silverstripe blog