Following yesterday’s announcement of the Ubuntu Webapps project, I really wanted to find a way to try it out on a website. I chose my personal blog (this one) as my guinea pig.
Since this site is powered by WordPress, it seemed that the best way to add Ubuntu Webapps integration was to make a plugin. Now I’m not a big fan of writing WordPress backend code, not only is it PHP but I’ve found the API documentation lacking and the actual API implementation a bit of a mess.
However, after only a few hours of work (90% of which was spent trying to get the WP API to work), I had a very basic plugin that would export all my published pages to the Unity HUD. If you have already installed the Ubuntu Webapps preview, you should have been asked if you want to integrate this site already. If you did, you will get this in your HUD:
The code is licensed under the AGPLv2, and can be branched from my bazaar branch.
To install it, just copy the ubuntuwebapps.php file into your wp-content/plugins/ directory, then activate the plugin from the WP admin. And remember this is 0.1 code that is mere hours old. You have been warned.Read more