msgbartop
The Open Source DITA Authoring Platform
msgbarbottom

08 Dec 08 DITA for Wordpress

If you're new here, you may want to subscribe to our RSS feed. Thanks for visiting!

A few days ago I released the DITA-OT and the Wordpress plugins that enable me to publish part of the (almost inexistant) DITA-OP documentation on this blog. I am talking about the About, Download and Getting Started pages that appear in the menu up here.

The DITA-OT plugin transforms a map into a single file, suitable for publication, and automatically call the xmlrpc API of the blog to publish it.

The DITA Wordpress plugin adds a css (a slightly modified version of the DITA-OT commonltr.css) to your Wordpress theme to properly render the standard domains.

You can download both plugins here, they are released under the GPL license.

  • The dita2wp.zip contains a README file with instructions about installation and usage of the plugin.
  • The wp-dita-plugin.zip is very small Wordpress plugin, just unzip the file into your wordpress plugins folder and activate it in your Wordpress admin interface.

I tested only with Wordpress but the DITA-OT plugin should be able to publish to any blogging platform that supports the Blogger API.

UPDATE: A reader noticed a small mistake in the README file of the dita2wp plugin. In order to install the plugin in the DITA-OT the command should read ant -f integrator.xml instead of anf -f integrate.xml.

I also notice that, since 2.7, it is not possible anymore to update Wordpress pages using the Blogger API. If this is what you do with this plugin (my case) then you will have to change the xmlrpc.php page in your wordpress installation. Go to line 1912 and replace the following code:

1912
1913
1914
if (!$actual_post || $actual_post['post_type'] != 'post') {
	return new IXR_Error(404, __('Sorry, no such post.'));
}

with this one:

1912
1913
1914
if (!$actual_post) {
	return new IXR_Error(404, __('Sorry, no such post.'));
}

Tags: , , ,

Reader's Comments

  1. |

    This would be great for a “New Features” blog for a software firm. I don’t have WP, so I have to ask, how does it handle images?

    Reply to this comment
  2. |

    Bonjour Claude,

    Une petite erreur s’est glissés dans la README du plugin dita2wp, la commande pour ajouter un plugin dans DITA-OT est : ant -f integrator.xml et non anf -f integrate.xml :-)

    Sinon, le plugin focntionne bien.

    Nice work, keep it on !

    Habib

    Reply to this comment
    • |

      Thanks Habib,
      I also noticed that, since 2.7, it is not possible anymore to update Wordpress pages using the Blogger API.
      I had to modify the xmlrpc.php on this site…
      Regards

      Reply to this comment

Leave a Comment

SourceForge.net Logo