|
||||||
New LookI grew tired of that sad little calendar staring back at me from my weblog, silently berating me over the fact that I've been writing only about once a month (or less!) -- and besides, does anyone actually use the thing for navigation? -- so I replaced it with links to monthly archives. Much better! One minor wrinkle that made the change more challenging: Radio Userland (the software I use to produce this masterpiece) names its index pages "index.html". This site, however, is hosted on a Windows server configured to look for default pages named "default.aspx/asp/htm". Now, I could have simply included the file name in my archive links, or asked my ISP to add "index.html" to the server's list of default pages. But what I really wanted was for Radio to generate archive pages named "default.htm". Here's how I did it: First, I went into user.radio.prefs.indexFileNames (in radio.root) and changed fname2 and fname3 to "default.txt" and "default.htm", respectively. Then I modified "on getArchiveFilePath" in system.verbs.builtins.radio.weblog.publish so that it returns a file named "default.txt", rather than "index.txt". That's it! The downside, of course, is that the next time Userland updates the code in question, my changes will be overwritten. Wouldn't it be nice if Radio exposed the default filename as a preference?
Post a comment
|
Articles
Easy RSS in VB.NETIs Inheritance Overrated? A Tale of Tabbed Pages Categories
.NETBlog Career Cycling Geek Humor Microsoft Music Personal Rants Reading Software Tech Usability VB Archives
March 2008December 2006 August 2006 April 2006 February 2006 January 2006 December 2005 September 2005 June 2005 May 2005 March 2005 January 2005 December 2004 September 2004 July 2004 June 2004 January 2004 August 2003 July 2003 May 2003 April 2003 March 2003 February 2003 January 2003 December 2002 November 2002 Misc
Talk to MeSubscribe |
|||||