Graffiti to Community Server Migrator

Community Server

Group for Content about my AlexCrome.CS addon package for Community Server 2008

Graffiti to Community Server Migrator

  • Comments 4

A few months ago, I decided to move my website from GraffitiCMS to Community Server. Whilst I loved Graffiti as a blogging platform, it didn’t best serve my needs for my Community Server Addons – I wanted to be able to show the addons in use, and wanted to use wikis for documentation.

In order to migrate content from Graffiti to Community Server, I created a utility page that ran within Community Server, and grabbed posts from Graffiti using the Graffiti API.  It imports posts from an individual category (and optionally comments and posts from child categories) into a Community Server blog.  I was actually very surprised how easy it was to get posts out of Graffiti – I just referenced the GraffitiClient.API.dll file included with Graffiti from my custom webpage, created an instance of GraffitiService and could access the Graffiti content from that instance.

The migrator page I created is available here.  It is very rough around the edges - the only testing’s it’s gone through was that it managed to successfully migrate cotnent from my graffiti website to my community server website on the third or fourth attempt.  Make sure to carefully read through the notes section when you open the migrator pgae.

To use the migrator, just drop the migrator page somewhere within your Community Server website and copy the GraffitiClient.API.dll from your Graffiti install into the /bin/ folder of Community Server.  You can then access the migrator by opening the page in your web browser.  (If you get redirected to an Access Denied page, ensure the user you’re logged in as has permissions to post to at least one blog.)

Once you’ve opened the Migrator page, there are two steps to the migration – the first is to get a list of categories from Graffiti.  To do that you need to fill in the username and password you use to login to Graffiti, as well as the URL to the Graffiti.  (NOTE, you must make sure you append /api/ to your url.)  Press the Load Graffiti Categories button to load the Categories.

image

Now you have a list of categories from Graffiti, you can select the categories you want to import and the blog you want to import the content into.  You can also chose if you want to migrate comments, and whether you want to migrate content from all child categories.  To migrate your content, hit the Migrate Posts button and your content will be copied from Graffiti to Community Server.

image 

Again I must point out it’s very rough around the edges and should not be used without taking appropiate backups.  Feel free to look at the migration code but be warned it’s not pretty however it did the job it was required to do.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Post
  • Hi, I'd like to download your migrator but I'm getting an access denied page each time I try. Would you help me with this?

    Thanks

  • Try Now.

  • Worked, thank you!

  • great advice. thanks a lot

Page 1 of 1 (4 items)
Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Post