Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Wordpress Importer Module

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 3938 Views
  • Phalkunz
    Avatar
    69 Posts

    Wordpress Importer Module Link to this post

    Hi all,
    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

    REQUIREMENTS:
    - Blog module (latest daily build)
    - Enable allow_wysiwyg_editing in BlogEntry.php
    - Wordpress export XML file on your local file system

    INSTALLATION:
    - 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)

    NOTES:
    Make sure the selected blog holder is published before importing

  • Axl Rose
    Avatar
    Community Member
    7 Posts

    Re: Wordpress Importer Module Link to this post

    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?

  • Axl Rose
    Avatar
    Community Member
    7 Posts

    Re: Wordpress Importer Module Link to this post

    Ok, here's the image. There's no UPLOAD FILES field when you EDIT the post...

  • Phalkunz
    Avatar
    69 Posts

    Re: Wordpress Importer Module Link to this post

    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.

  • Axl Rose
    Avatar
    Community Member
    7 Posts

    Re: Wordpress Importer Module Link to this post

    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.

  • Ryan Hellyer
    Avatar
    Community Member
    1 Post

    Re: Wordpress Importer Module Link to this post

    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.

    3938 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.