Mon, 26 Jun 2006

sortz solves date problems with blosxom

I was bit annoyed when I learnt that blosxom takes the timestamp of the files to determine the date of posting. Whenever I made modifications to my post at a later date, the order of display and the date display also changes. I did some google and most people suggested me to touch the file and change the timestamp. That is a hassle and specially in my windows laptop, I need to download another tool to do this since windows doesn't have a touch like linux command to change the date. Besides, I just encourage anyone to change the timestamp each time when a file is modified.

I did a simple google and finally found sortz plugin through a link from the unofficial blosxom homepage.

1. I saved the contents into "sortz" without file name extension. I then mentioned the date format I prefer as below

my $format = 'YYYYMMDD';

2. I created a plugins directory under /u/suresh/blosxom directory in the server.

3. I then modified the blosxom.cgi file and added the plugin path as below and put it back in /u/suresh/.public_html/cgi-bin/

$plugin_dir = "/u/suresh/blosxom/plugins";

4. I created a new blogentry and saved the file as YYYYMMDDfilename.txt

5. Copy the blog into the corresponding directory (category) in blosxom

Done. Now when I pointed my browser to http://www.armory.com/~suresh/cgi-bin/blosxom.cgi I could see the files reflecting the dates I mention in the file name extension.

[/work] permanent link