Posting Drupal blog entries from within Emacs

Tagged:  
I just found out you can easily post Drupal blog entries from within Emacs by using the wonderful 'weblogger.el'. Here's what you have to do:
  • Enable the 'Blog API' module in your Drupal installation and configure permissions and the blog types which should be accessible via XML-RPC.
  • Go to the Weblogger EmacsWiki page and get yourself weblogger.el and xml-rpc.el.
  • Install both in your load-path and require weblogger in your .emacs.
  • Now call weblogger-setup-weblog and use https://your-drupal-site/xmlrpc.php as URL for accessing the Drupal XML-RPC API, then provide username and password.
  • Now call weblogger-start-entry and start writing.
  • Use C-x C-s to post.
That's it! Now you can for instance create blog entries with the fantastic markup from Orgmode, and directly post it via weblogger-mode. There's just one problem: how can you set the taxonomy tags for the posting? Simply putting it into the 'keywords' section didn't work. It seems like you cannot do that via XML-RPC in Drupal, but luckily there's a little Drupal module called 'inline tags', which lets you flag the posting through a special tag
[tags]Emacs[/tags]
Note that the module requires Drupal 6, but it wasn't very hard to make it work under Drupal 5 (which I'm still using) - let me know if you need it.
Thanks for the post. I was just looking for something to use with Emacs and Drupal. I am also an org-mode user. Just looked for the post about your setup, looks good to me. Max / Adopteunmec
Great post, I too was looking for a way to put org-mode markup into a Drupal blog. One small item that I ran into was that the blog had to have at least 1 entry in it already when I ran weblogger-setup-weblog, otherwise weblogger-start-entry would fail with the error "Accessing an empty ring". I simply created my first blog entry for the user account under question from within Drupal, and then re-ran weblogger-setup-weblog, and then subsequent attempts worked. Thanks!
Thanks for the post. I was just looking for something to use with Emacs and Drupal. I am also an org-mode user. Can you elaborate on how you integrate the org-mode markup with weblogger?
Please see my new posting where I describe my setup.