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
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
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
I believe Eric even starts to invoke the
TiddlyWikiPluginGeneratorTweaker if the phone is ringing ;)
--
schilke
oh, that's true indeed - I already was wondering if there was a hidden
advantage to use a hack ;)
--
schilke
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.
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
umm, yep, also true - on the other hand - see next post...
...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