It’s been quite a while since I’ve been looking for a way to transfer a website from Wordpress to Spip, without any luck. There is a small php script deep in the mailing archives of rezo.net. But it was not doing the job the way I wanted. Script works ok, but doesn’t make a difference between articles and documents. However, it helped me write something else suitable to my needs.
Please note that the process described hereunder might not work for everybody. But with a little bit of Spip and Wordpress knowledge, it can easily be tweaked to suit your needs.
Basic principle:
We take the database from wordpress and add it to the Spip database. By calling a special template page, we will generate an xml file (dump) that Spip will load through his backup functions.
Don’t do this on a production server. Copy your whole wordpress website on a test server to be sure not to delete anything
In details:
(on the same web server as wordpress)
Notes:
Like I said, this script is not a full-proof solution. I had to make certain decisions while writing it to make it work as I needed. So, there is missing functions in it.
Here’s what it does (or not) do:
Todo:
I’d like it to look for <a href=" "><img src=" " /></a> and turn them into en <embX> and other little handy things like that. With a little help, I might extend this script to make it more like a general solution for everyone.