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