NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item2434: BASE windowtitle

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine foswiki.tmpl  
entry BASE%WEB% causes error in windowtitle

Line 25 in foswiki.tmpl:
BASE%WEB% changes %BASEWEB%

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

-- CarlinhosCecconi

Ouch. Blame Sven...

Set to Urgent.

-- ArthurClemens - 30 Nov 2009

For people seeing this defect I will attach a corrected template file so you can easily fix this.

In templates replace the foswiki.tmpl file with the attached

http://foswiki.org/pub/Tasks/Item2434/foswiki.tmpl

The bug is in line 25 where %BASE%WEB% must be corrected to %BASEWEB%

-- KennethLavrsen - 30 Nov 2009

Am I missing something here as it looks like the fix isn't quite correct - I think it should be
%TMPL:DEF{"windowtitle"}%<title>%TMPL:P{"titleaction"}% <nop>%BASETOPIC%%TMPL:P{"titlesep"}%%BASEWEB%%TMPL:P{"titlesep"}%<nop>%WIKITOOLNAME%</title>%TMPL:END%
rather than
%TMPL:DEF{"windowtitle"}%<title>%TMPL:P{"titleaction"}% <nop>%BASETOPIC%%TMPL:P{"titlesep"}%BASEWEB%%TMPL:P{"titlesep"}%<nop>%WIKITOOLNAME%</title>%TMPL:END%
as the closing % of the preceding TMPL isn't present - I think the original % in BASEWEB was in the wrong place rather than superfluous.

-- MartinRowe - 30 Nov 2009

Yes. I had not fixed it correctly. I have fixed the fix.

-- KennethLavrsen - 30 Nov 2009

ItemTemplate edit

Summary BASE windowtitle
ReportedBy CarlinhosCecconi
Codebase 1.0.8
SVN Range
AppliesTo Engine
Component foswiki.tmpl
Priority Urgent
CurrentState Closed
WaitingFor
Checkins Foswikirev:5683
TargetRelease patch
ReleasedIn 1.0.9
Topic attachments
I Attachment Action Size Date Who Comment
foswiki.tmpltmpl foswiki.tmpl manage 6.6 K 30 Nov 2009 - 20:21 KennethLavrsen Fix for typo bug in 1.0.8 - 2nd fix the fix version
Topic revision: r10 - 17 Jan 2010, PaulHarvey
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads