Geek Noise
Rants, rambles, news and notes by Peter Provost
12

dasBlog to .Text Converter

Monday, 12 April 2004 01:42 by Peter Provost

I've almost finished my dasBlog -> .TEXT converter. It currently handles all of the entries, plus categories and comments, quite nicely. Now I'm trying to decide how to handle permalinks.

As far as I'm concerned, there are two kinds of permalinks here. Internal permalinks are the ones where I am linking from one post to another. External permalinks are where you, my readers, link to my posts.

My first thought had been to fix the internal permalinks by looking for the pattern in the dasBlog posts and replacing them. The code for that is rather simple, but there is a problem getting .TEXT entry IDs without saving them once and I don't really want to have to hit the database twice... one to INSERT and get the ID and then a second time to update the content with the fixed permalinks.

So instead I'm thinking about writing an HTTP handler and registering it on the original dasBlog path. This way I will solve both the internal and external permalinks problem and my converter will be simpler.

If anyone else is going to be doing this kind of conversion and it interested in helping me test this code, drop me a line.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   Technology
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed