• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5151: PatternSkin: don't expand templates in argument position of an %IF

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension PatternSkin Urgent Closed   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


For example in edit.pattern.tmpl:

%IF{"not context TinyMCEPluginEnabled or $nowysiwyg='1'" then='%TMPL:P{"script:skintemplate:edit"}%'}%

should be

%IF{"not context TinyMCEPluginEnabled or $nowysiwyg='1'" then='$percntTMPL:P{\"script:skintemplate:edit\"}$percnt'}%

because the expanded template skin:skintemplate:edit might break the parser on the %IF. There are similar patterns in the other templates.

-- TWiki:Main/MichaelDaum - 20 Dec 2007

Summary PatternSkin: don't expand templates in argument position of an %IF
ReportedBy TWiki:Main.MichaelDaum

SVN Range TWiki-4.3.0, Tue, 18 Dec 2007, build 16029
AppliesTo Extension
Component PatternSkin
Priority Urgent
CurrentState Closed

Checkins TWikirev:16066 TWikirev:16067
TargetRelease n/a

Topic revision: r1 - 2007-12-20 - MichaelDaum
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback