silverstripe-blogger
silverstripe-blogger copied to clipboard
NEW Import from WordPress
This work is ongoing and will be released as a separate module.
There is a couple of modules that already do this for reference see:
https://github.com/ajshort/silverstripe-wordpressconnector
https://github.com/cam-findlay/wordpressimport-redux (on my old GH account but will be moving it when I get a chance to my current one).
What work have you done already on this? Perhaps we can integrate your work into these modules and have as a suggested dependancy in the composer file?
The work i've done so far was based on your wordpressimport-redux module but i've changed the code quite a lot and refactored it.
I've extended the upload field which offers two action after selecting the XML file to import.
- Evaluate - this allows the user to do a 'dry run' which tells the user what will be imported.
- Import - this will import from the XML file.
I've also tried to make the importer extandable too so any custom additions to this blog module can be supported in the import.
I'll try and get it to a reasonable enough condition to put on github so you can see what's there and have some input before I release it as stable.
nice one, if your fork my module and have your code there on a branch I would be happy to accept a pull request rather than create another separate module that does the same thing as another.
Wordpress importer was a module years ago for silverstripe 2.3, would be great to get it back on the official silverstripe or silverstripe-labs git hub account with a few active maintainers (such as yourself and myself). Thoughts?
Sounds good. I'll try and put it up some time this week and we'll go from there.
I've put my work so far up here: https://github.com/micmania1/silverstripe-blogger-wpimport - I've been using the tests/WordPressTest.xml file to test.
Its incomplete, very rough around the edges and as you can see has changed quite a lot from the original module.
I think if we're going to make an importer for Silverstripe as a whole, a different approach would be needed as this is very specific to this module. I'll start putting more thought into it over the next few days but in the meantime you can look through what's there and let me know what you think.
Hey Michael,
Just a fyi, I have been working on a SS3.1 compatible version of the wordpress importer this weekend for the silverstripe/blog module.
Currently sitting at https://github.com/camfindlay/silverstripe-wordpressimport but am aiming to get it into silverstripe-labs repository at some point once I have a nice stable version. Then will get into Packagist.