| Playing with page_titler |
page_titler is a plug in for Blosxom which changes the title of the page you're viewing the to name of the first story on the page. I've been playing with it, but unfortunately it doesn't work with the static generation mode for blosxom that I am running. I suspect I'm going to get to write my own one of these...
It also has this weird cache file I don't really need... [tags:]
posted at: 15:58 | path: /blosxom | permanent link to this entry
-
#1
Dave
That cache file is what makes it work. The head portion is already written before the stories are processed, so by the time you figure out what the top story is, that has already passed. I write the cache file so that you are using the results of the previous page load, and if the top story changes you rewrite the cache file. The first load after the top story changes is wrong, and then all subsequent ones are correct. You could do it other ways, but that would involve doing the work of figuring out the top story twice.
-
#2
Michael Still
Whereas what I do is determine what titles are being displayed, and then run a regexp over the output from Blosxom in the last() plugin function. This means that there is no state cached on disc, and that the plugin works in static mode as well.
