Tags:
create new tag
view all tags

%SEP% variable not always honoured

The value of the %SEP% variable defined in the active skin is not used when rendering certain specific "system" topics.

Test case

  1. copy twiki.tmpl to skin.tmpl ; view.tmpl to view.skin.tmpl
  2. edit skin.tmpl and change %TMPL:DEF{"sep"}% | %TMPL:END% to %TMPL:DEF{"sep"}% XXXXX %TMPL:END%
  3. edit view.skin.tmpl and change %TMPL:INCLUDE{"twiki"}% to %TMPL:INCLUDE{"skin"}%
  4. edit Sandbox.WebPreferences and set the skin to skin
  5. point your browser at Sandbox.WebHome, the separator will be |
  6. point your browser at a Sandbox.TestTopic1 the separator will be XXXXX
  7. edit twiki.tmpl and set sep to ==%TMPL:DEF{"sep"}% YYYYY %TMPL:END% ; the affected pages will use YYYYY as the separator.

Topics which are known to exhibit this behaviour: WebHome, WebIndex, WebChanges

Topics which don't have this problem: WebSearch, WebTopicList, WebSearch, WebPreferences

I have not observed the problem on any user created pages.

Environment

TWiki version: TWiki20020803beta
TWiki plugins: DefaultPlugin, CommentPlugin, InterwikiPlugin
Server OS: debian woody 3.0r0
Web server: apache 1.3.26
Perl version: v5.6.1
Client OS: n/a
Web Browser: Mozilla 1.2b, IE 5.5

-- MattWilkie - 06 Nov 2002

Follow up

Fix record

The fix appears to be to skip step 3 above, do not change %TMPL:INCLUDE{"twiki"}% to %TMPL:INCLUDE{"skin"}%

thanks to TomKagan for figuring this out (details at SeeSkinDev)

-- MattWilkie - 12 Dec 2002

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-12-12 - MattWilkie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.