17452 Posts in 4473 Topics by 1971 members
|Go to End|
21 July 2008 at 12:31pm
I've just finished tidying up the code and documentation for this module. Have a look at it and feel free to leave a feedback and suggestion. Cheers.
HOW IT WORKS:
- This module imports wordpress blog entries and comments stored in Wordpress export XML file
- You can get wordpress export xml in wordpress admin page (Dashboard > Manage > Export)
- Wordpress categories and tags are translated to SS Blog tags
- Blog module (latest daily build)
- Enable allow_wysiwyg_editing in BlogEntry.php
- Wordpress export XML file on your local file system
- svn co svn://svn.silverstripe.com/silverstripe/open/modules/wordpressimport/trunk wordpressimport
HOW TO USE:
- In CMS, select a BlogHolder page type and then go to Import tab.
- Select a Wordpress xml file
- Click 'Upload Wordpress XML file' button to upload (this may take a while depending on how many entries the xml file contains)
Make sure the selected blog holder is published before importing
2 October 2008 at 6:29am Last edited: 2 October 2008 6:33am
I could import the database from Wordpress and put it into SS. Anyway, Im having trouble with the html code in the posts. For example, it doens't show and image, just shows the tag <img src=... (situation marked in green in the image) and Im also getting a debug message at the top of te site. Here's the pic. Any idea?
2 October 2008 at 6:50am
Ok, here's the image. There's no UPLOAD FILES field when you EDIT the post...
2 October 2008 at 9:23am
It's not something to do with this module but blog module. By default, blog module uses BBCode to render content but the content created by wordpress is in the html code.
To get around this, you can either turn on your visual editor (as this will tell blog module to use html code instead) in blog module entry or replace the html tags (such as img tag) with BBcode tags. I recommend the first option.
2 October 2008 at 10:37am
Ok!Thanks! I'll do that.
If is not a module problem, may be it's a good idea to move this messages to another post, for not confusing the people.
11 November 2008 at 2:25pm
It may be easier/faster to open the XML file in a text editor and use search and replace to convert all of those <img src="" .... tags into bbCode.
|Go to Top|