Foswiki on GitHub is open for business! Next release meeting: Monday October 13, 1300Z

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

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine    
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{"script:skintemplate"}%%TMPL:END%
 %TMPL:DEF{"script:topictemplate"}%%TMPL:END%
 
-%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%
 
 %TMPL:DEF{"head"}%<head>
    %TMPL:P{"windowtitle"}%

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

commited

-- 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
Component
Priority Urgent
CurrentState Closed
WaitingFor
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 CopyrightStatement. Creative Commons License