Item2413: When I use a script that uses oops to show results, the web page title is wrong.

Priority: Urgent
Current State: Closed
Released In: 1.0.8, 1.1.0
Target Release: patch
Applies To: Engine
Reported By: SvenDowideit
Waiting For:
Last Change By: KennethLavrsen
for example, if you use BulkResetPassword, the resulting url is manage/System/BulkResetPassword, but the title at the top of my browser is WebHome<Main<Foswiki.

this is due to core/templates/foswiki.tmpl defining the title using WEB and TOPIC

I think they should be BASEWEB and BASETOPIC

I'd like a second opinion though.

trivial change:
sven@quad:/home/www/nextwiki/branches/Release01x00$ svn diff core/
Index: core/templates/foswiki.tmpl
--- core/templates/foswiki.tmpl   (revision 5623)
+++ core/templates/foswiki.tmpl   (working copy)
@@ -22,7 +22,7 @@
-%TMPL:DEF{"windowtitle"}%<title>%TMPL:P{"titleaction"}% <nop>%TOPIC%%TMPL:P{"titlesep"}%%WEB%%TMPL:P{"titlesep"}%<nop>%WIKITOOLNAME%</title>%TMPL:END%
+%TMPL:DEF{"windowtitle"}%<title>%TMPL:P{"titleaction"}% <nop>%BASETOPIC%%TMPL:P{"titlesep"}%%BASEWEB%%TMPL:P{"titlesep"}%<nop>%WIKITOOLNAME%</title>%TMPL:END%

-- SvenDowideit - 25 Nov 2009

Agreed. TOPIC and WEB change as you move through the include chain; only BASEWEB and BASETOPIC are reliable.

-- CrawfordCurrie - 27 Nov 2009


-- SvenDowideit - 29 Nov 2009

ItemTemplate edit

Summary When I use a script that uses oops to show results, the web page title is wrong.
ReportedBy SvenDowideit
Codebase 1.0.7, trunk
SVN Range SVN 5623: Foswiki-1.1.0-dev, Thu, 29 Oct 2009, build 5392
AppliesTo Engine
Priority Urgent
CurrentState Closed
Checkins distro:c459dfdd3635 distro:dcbf36f25698
TargetRelease patch
ReleasedIn 1.0.8, 1.1.0
Topic revision: r5 - 29 Nov 2009, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy