Date: 2007-11-30 03:14 pm (UTC)
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;
}
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

afuna_archive: (Default)
afuna_archive

June 2009

S M T W T F S
  1 2 3 4 5 6
7 8 9 10 11 1213
14151617181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 18th, 2025 09:18 am
Powered by Dreamwidth Studios