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.

Now Working on RESTy Archives

I seem to have sorted out the main code for making blosxom at least pretend to be RESTy, now I am working on the archives system to clean that up. It is largely based on the main code, but needs to take into account the “forced” /archives/ directory when working out relative paths and stuff like that.

Once this is complete, I will then start working on creating some templates for the actual site (coverting my Visio wireframes into real XHTML!).

Oversight

When I thought I had “finished” the mainline code for RESTxom, I forgot that I hadn’t thoroughly tested the RSS code (allowing you to request rss.xml from any topic and get a correct feed from that point ‘down’). Turns out it doesn’t work properly… double-slashing problems and whatnot, shouldn’t be too hard to fix hopefully, but darned annoying in the meantime.

So off I go to fix the RSS code, then have to fix it in the archives as well (which are working now!)

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!