• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7181: Support PAGETITLE Macro in stock template

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

While programmers like strictly named "Keys" to topic names (like this one, Item7181 :-), less technical users want top see something more descriptive in the Browser page title, history, bookmarks, etc.

Having seen a few references to a PAGETITLE variable floating around, I implemented this variable "wiki-side" in a skin template that overrides %TMPL:DEF{"windowtitle"}% (Reference)

I would like to see this code added to twiki.tmpl to avoid the need for an extra cover/skin and to make PAGETITLE part of the standard TWiki distribution so that everyone can benefit, not just "my clients".

Template Code

Current code in twiki.tmpl

%TMPL:DEF{"windowtitle"}%<title>%TMPL:P{"titleaction"}%  <nop>%TOPIC%%TMPL:P{"titlesep"}%<nop>%WEB%%TMPL:P{"titlesep"}%<nop>%WIKITOOLNAME%</title>%TMPL:END%

Recommended new code

%TMPL:DEF{"normalwindowtitle"}%<title>%TMPL:P{"titleaction"}% ** <nop>%TOPIC% ** %TMPL:P{"titlesep"}% %WEB% %TMPL:P{"titlesep"}% <nop>%WIKITOOLNAME%</title>%TMPL:END%

%TMPL:DEF{"dbwindowtitle"}%<title>%TMPL:P{"titleaction"}%<nop>%PAGETITLE% %TMPL:P{"titlesep"}% %WEB% %TMPL:P{"titlesep"}% <nop>%WIKITOOLNAME%</title>%TMPL:END%

%TMPL:DEF{"windowtitle"}%%TMPL:P{"titleaction"}%%IF{"defined PAGETITLE" then="%TMPL:P{"dbwindowtitle"}%" else="%TMPL:P{"normalwindowtitle"}%"}%%TMPL:END%

-- TWiki:Main/VickiBrown - 2013-03-11

TWiki has now a TOPICTITLE. It is not yet used in the Window title. Too late for TWiki-6.0.0, but will be done in the future. See VarTOPICTITLE.

-- TWiki:Main.PeterThoeny - 2013-10-13

ItemTemplate
Summary Support PAGETITLE Macro in stock template
ReportedBy TWiki:Main.VickiBrown
Codebase 5.1.3, 5.1.1
SVN Range TWiki-5.1.3-trunk, Fri, 01 Mar 2013, build 25265
AppliesTo Engine
Component

Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2013-10-13 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback