Removing the Subtitle part from the Browser's Titlebar

30 views
Skip to first unread message

Shankar

unread,
Sep 18, 2007, 7:50:10 PM9/18/07
to TiddlyWiki

Hello,

Is there a way of customizing so that the browser titlebar shows only
the title of the TiddlyWiki and does NOT show the Subtitle?

Thanks!

Cheers; 'Best,

shankar

Eric Shulman

unread,
Sep 18, 2007, 8:02:48 PM9/18/07
to TiddlyWiki
> Is there a way of customizing so that the browser titlebar shows only
> the title of the TiddlyWiki and does NOT show the Subtitle?

getPageTitle() is a core function that normally returns "SiteTitle -
SiteSubtitle"... to redefine this function, simply place the following
line of code in any tiddler tagged with systemConfig:

function getPageTitle() { return wikifyPlain("SiteTitle"); }

or, perhaps even nicer:

function getPageTitle() { return wikifyPlain("PageTitle"); }

That way, the PageTitle can be completely different from the SiteTitle
and SiteSubTitle (which can still be displayed as usual in the TW
header area).

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Eric Shulman

unread,
Sep 18, 2007, 9:41:40 PM9/18/07
to TiddlyWiki
> the [[PageTitle]] can be completely different from the [[SiteTitle]]
> and [[SiteSubtitle]]

I've added this to
http://www.TiddlyTools.com/#CoreTweaks

If [[PageTitle]] is defined, it will be used as the browser window
titlebar text. Otherwise, the regular [[SiteTitle]] plus
[[SiteSubtitle]] is used as a fallback.

enjoy,
-e

schilke

unread,
Sep 19, 2007, 4:47:11 AM9/19/07
to TiddlyWiki
I'm not sure, if I got you right, but if I'm correct you could just
empty the SiteSubtitle (shadow tiddler) and you're done...
(delete doesn't help as the tiddler will be rebuild with the default
content).

I believe Eric even starts to invoke the
TiddlyWikiPluginGeneratorTweaker if the phone is ringing ;)

--
schilke

Udo Borkowski

unread,
Sep 19, 2007, 5:41:31 AM9/19/07
to Tiddl...@googlegroups.com
Eric's solution gets rid of the "-" following the SiteTitle, since

        My Site Title -

does not look that nice.

If you don't care for this "beautification" just defining an empty SiteSubtitle tiddler (as suggested by schilke) is sufficient.

Udo

----------
Udo Borkowski
http://www.abego-software.de

schilke

unread,
Sep 19, 2007, 6:39:20 AM9/19/07
to TiddlyWiki
> Eric's solution gets rid of the "-"

oh, that's true indeed - I already was wondering if there was a hidden
advantage to use a hack ;)

--
schilke

Simon Baird

unread,
Sep 19, 2007, 8:19:48 AM9/19/07
to Tiddl...@googlegroups.com
On 9/19/07, schilke <googlegrou...@xoxy.net> wrote:
>

I think the point you've forgotten is that you might /want/ a
SiteSubtitle. You just don't want it to appear in the html title.

--
simon...@gmail.com

Simon Baird

unread,
Sep 19, 2007, 8:22:13 AM9/19/07
to Tiddl...@googlegroups.com

Personally I find myself hacking PageTemplate before it comes to this,
but Eric's PageTitle tweak is a nice one and I vote for it to go into
the core.

Simon.
--
simon...@gmail.com

schilke

unread,
Sep 19, 2007, 9:33:53 AM9/19/07
to TiddlyWiki
> I think the point you've forgotten is that you might /want/ a
> SiteSubtitle. You just don't want it to appear in the html title.

umm, yep, also true - on the other hand - see next post...

schilke

unread,
Sep 19, 2007, 9:43:07 AM9/19/07
to TiddlyWiki
> Personally I find myself hacking PageTemplate before it comes to this

...yes - that's what I thought (and would have done, too)

> but Eric's PageTitle tweak is a nice one and I vote for it to go into
> the core

Eric's tweaks are always nice - but before committing please consider
expanding the tweak a bit - how about using the tiddler title as
SiteSubtitle if permalinks/#anchors are invoked?
(that's not an easy one, I bet, you might feel defiant... - hmm, IIRC
that's not the first time that it comes up...)

--
schilke

Reply all
Reply to author
Forward
0 new messages