Where


When

Who

< My Radio ProjectWell, I think | Main | WowI just got in from >

February 18, 2002

My Radio Archive IdeaSo the

My Radio Archive Idea

So the idea that I was talking about below was kind of a minor tweak to how Radio publishes archives. It's actually very cool they way they get built up. In your web home directory it creates a folder for the year, and then a subfolder for each month. In that subfolder it then has files 01.html, 02.html, etc. One file for each day you posted something. (So if you didn't post anything on the 5th, there's no 05.html).

The issue came when I started thinking about how to link to these archives. Idea one is having a page that lists a calendar for each month in the archive (like the one on the right). My only concern there is that it might be slow due to being so table heavy (I plan to try and see today). So one thought I had was to just list every month I have an archive and point it to the archives.

Here's where I ran into a small stumbling point. The first day in each archive month folder is the first day in that month you posted. So if I didn't post till the 6th of the month, there are no files for all the days earlier. This would mean that I'd have to go through all my archives and see what the first day I posted was.

So, my solution was a simple one. Each month subfolder should have an index.html that equates to the first day in the month a post occured. So in the above case, there'd be an index.html that was the same thing as the 06.html file. That way, you could easily point someone at the archive page for a month by just sending them to http://[website]/2001/10/ and you wouldn't need to worry about anything else.

Posted by snooze at February 18, 2002 2:27 PM