Tags:
create new tag
, view all tags

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% &lt; %WEB% &lt; <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 smile

-- 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

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-07-13 - VickiBrown
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.