Feature Proposal: Ability to change page titles on a per-page basis
Motivation
Sometimes we don't need or want to see the standard Foo < Blah < Whatever breadcrumb trail in the browser title bar for a given page. A one-line change to the running template can allow this to be overridden.
Description and Documentation
I was able to make this feature work by simply changing the 'windowtitle' definition in constants.pattern.tmpl from the current default to:
%TMPL:DEF{"windowtitle"}%<title>%TMPL:P{"titleaction"}%%IF{"defined PAGETITLE" then="%PAGETITLE%" else="<nop>%TOPIC% < %WEB% < <nop>%WIKITOOLNAME%"}%</title>%TMPL:END%
Now, on any given page, I can add 'Set PAGETITLE = Foo' and the browser title bar will reflect that after saving. All other pages maintain their default breadcrumb trail title.
Examples
Impact and Available Solutions
Implementation
--
Contributors: OwenMehegan
Discussion
--
OwenMehegan - 15 Mar 2007
To add weight to this both natskin and zengarden skin use PAGETITLE
--
SvenDowideit - 15 Mar 2007
Terrific Idea. I posted a similar query to Support recently:
Support.OverridePageTitle. The template change is slightly different in that case though both work well.
The ugly part about editing the template, of course, is, well, you have to edit the template! (and have server access. :-( Putting this capability into TWiki (or into a Plugin) would be
well appreciated.
--
VickiBrown - 13 Jul 2007