Simon Griffee · Time, light, movement & distance.

Post to Textpattern from Textmate With XML-RPC ➶

30 October 2006

Update 2007/08/08: The XML-RPC posting-from-Textmate-to-Textpattern functionality seems quite buggy and in my opinion is not worth pursuing at this time. One problem I’ve found is the disappearance of the URL title from a Textpattern article when updating a post via Textmate’s BundlesBloggingFetch Post, and as a consequence, a 404 Error.

For those of you who have asked for help with this, I’ve added some clarifications below. Cheers!


If this post is visible, then “this (Textpattern.com - Download 4.0 XML-RPC.)”:http://textpattern.com/download-rpc worked. Things that needed to be done:

“Download and install Textmate XML-RPC (Textpattern.com - Download 4.0 XML-RPC.)”:http://textpattern.com/download-rpc

Apply the “fix described in comment #20 here (Textpattern welog - XML-RPC support for Textpattern 4.0.3 is here.)”:http://textpattern.com/weblog/201/xml-rpc-support-for-textpattern-403-is-here#c000287

Make sure you have the “Textmate Blogging bundle (Textmate Blog - Blogging From TextMate.)”:http://macromates.com/blog/archives/2006/06/19/blogging-from-textmate/ installed. You can use the “GetBundle Bundle”:http://projects.validcode.net/getbundle to easily get the blogging bundle and any other bundle you might like to bundle into Textmate. Bundle bundle bundle.

Make Textile be recognized as the syntax: Fire up Textmate, then on the menu bar: Bundles → Bundle Editor → Show Bundle Editor → Blogging → Blog Post (Textile), NOT Blog — Textile → CLICK ON: untitled.blog.textile, and add Format: 1 under the Title: line like this:

Title: ${TM_BLOG_TITLE} Format: 1 ${TM_BLOG_HEADER} Main entry text


Main entry continued

Configure the RPC(Remote Procedure Call) endpoint URL(Uniform Resource Locator) to post to a specific Textpattern section (Menu bar → Bundles → Blogging → Setup Blogs) like this: http://username@site.com/rpc/index.php#sectionname. For example, my site would be set up as follows:

Hypertexthero Dlog http://sgriffee@hypertexthero.com/rpc/index.php#dlog

To post to a site: Menu bar → File → New From Template → Blogging → Blog Post (Textile).

Fill in the Title of the post, the excerpt (main entry text) and body (main entry continued)

Either press Commang-Control-P or go to the Menu bar → Bundles → Blogging → Post To Blog. You will be given a list of blogs you have set up on step v. above. Select one and click OK. You’ll be prompted for your password before being able to post.

Send