GraffitiCMS 1.2 export utility

Posted August 29, 2009 in c# graffiti-cms movabletype
Reading time: 2 minutes

Update 2010-09-29: This code has been moved to BitBucket:

Disclaimer: This is a little one-off utility that I modified to export to mtimport, MovableType’s import format (the original version of the utility was written in VB.NET, and exported BlogML; this function still exists, though it is not called). It is not polished, it probably has a bug or two in it, and it likely does not do everything you need it to do. Unfortunately, I don’t have the time to make it do everything perfectly; I could only put in the time to make it good enough for me. That being said, the source code is available and is being released under the MIT License, so feel free to take it and modify it as you see fit.

Credit: This is a C# port and derivative of Curt C’s Graffiti To BlogML Exporter. He did the hard work of writing the original BlogML export routine. Thanks, Curt!

Dependencies: From your Graffiti CMS installation, you will need to copy DataBuddy.dll and Graffiti.Core.dll into the Solution Items folder of the attached Visual Studio 2008 solution. These are Telligent’s DLLs, and I’m pretty sure I don’t have rights to redistribute them, so you’ll need to get them yourself.  Also, you’ll obviously need Visual Studio 2008.


  • Copy DataBudy.dll and Graffiti.core.dll from your Graffiti installation into the Solution Items folder
  • Open GraffitiToBlogML.sln in Visual Studio 2008
  • Edit the connection string in App.config to point to your Graffiti instance
  • Click the "..." button to select an output folder
  • Click the Run button

After execution finishes, you should have a viable mtimport.txt file that you can import into MovableType. If you need a MovableType instance to test with, you can download one for free from JumpBox.

If WordPress is your final destination, then, after you have imported your data into MovableType, you can export it again (I recommend doing this extra step so that WordPress will be importing a file exported by MovableType itself, and not my little utility).  Once you have this new export file, WordPress can then import it.

If you’re an end user, I apologize for not providing a runnable executable, but time is money.  :)

If you have questions, please post them in the comments.  I will do my best to answer them, though I can’t guarantee any level of support.

Update 2009-09-22: The MovableType-to-WordPress importer built into WordPress does not appear to import tags. I found this tool that imports your tags after you have already done the main import from MovableType:

Share on:


comments powered by Disqus