I took a function from the Core and modified it to append the tags names to the title. I'm not sure yet if I should work something out to replace + with a space in the case of tags that are phrases:
function Page::title() [notags] : string {
var string title = $.global_title;
if ($title == "") {
$title = $.journal.name;
}
if ($.view == "friends") {
$title = $this->view_title();
} elseif ($.view == "recent" and $.data_link{"rss"}.url->contains("?tag=")) {
var int baseurl_length = $.base_url->length() + 14; # "/data/rss?tag=" = 14 chars
var int feedurl_length = $.data_link{"rss"}.url->length();
var string tag_name= $.data_link{"rss"}.url->substr($baseurl_length, $feedurl_length - $baseurl_length);
$title = $title + " (" + $tag_name + ")";
} else {
$title = $title + " - " + $this->view_title();
}
return $title;
}
no subject
Date: 2007-11-30 03:14 pm (UTC)