Putting blosxom to REST

The plan with these helper scripts that I am writing is that blosxom will be able to operate in a “REST-like” environment. This means that directing a browser to a URL like /blogging/blogger.com/ should load the blog entries in that directory (if it is within a defined blog-tree).

It’s working so far, and I have added in the option of linking to ‘rss.xml’ within any directory in the blog-tree to get an RSS feed of that level/category/sub-blog. Sweeeet. Next up is to eliminate the permalinks needing to use the blosxom.pl script in the URL (i.e. so that archives don’t have to link to blosxom.pl at all).

RESTxom Now Has RESTy Archives

I have made it so that the /archives/ directory, from the root of the blog, houses all of the archives for the entire blog, organised by date. It simply parses the dates and then requests the details from blosxom. To sort out the issues related to relative vs. absolute references, I have added in # # #URL# # # (actually no spaces between any of the #’s) to the story template, which is replaced by my scripts with the root of the blog-tree when displaying it.

The only problem with this system at the moment is that I don’t think it’s actually passing the internal page anchor (after the #) when it displays the page, so it might not link down on the page to the specific post… I will have to experiment with this some more.

UPDATED: (about 3 seconds later) — it does load the correct place in the page, so it’s all good!

Good idea for the calendar in the archives…

Just had a good idea, it’d be nice to have the calendar display the month which the current (requested) post was made in. So if I just go directly to /archives/2003/12/* then it would display the month of December, 2003 in the calendar.

Shouldn’t be a hard modification to make, and I only have to make it to the archive processing script – so should be easy. I’ll add it before the site goes live.

blosxom rocks!

blosxom is the amazingly simple, yet endlessly powerful blogging application written by Rael Dornfest which is now running most of the DentedReality website.

I have made some pretty schmick “helper” scripts (even if I do say so myself), which allow me to manage a blog using directories, and you can link straight to a directory, and it will show you the blog entries via blosxom in that dir.

Changes are afoot

I am re-writing a large proportion of the code which runs RESTxom, to make it more portable and reliable. Also trying to make sure that *everything* works properly, rather than getting any nasty surprises down the line!

Once this is done properly, then RESTments should be pretty simple(?) to add in.