You are here: Foswiki>Tasks Web>Item13448 (09 Jun 2015, GeorgeClark)Edit Attach

Item13448: setting Set SKIN does not work in combination with Macro IF

pencil
Priority: Enhancement
Current State: Proposal Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: SkinCustomization
Branches:
Reported By: JensSchloemer
Waiting For:
Last Change By: GeorgeClark
I need something like this:

  * Set SKIN = %IF{ "context isadmin" then="pattern" else="other"}%

but it does not work.

-- JensSchloemer - 08 Jun 2015

Right, this is not going to work %MACROS are expanded during the rendering process. The skin is set very early as it's used during rendering. I'll mark this as needing a feature proposal.

You could set the SKIN in the admin user's home topics so that they get pattern skin. I don't know how to do this dynamically.

-- GeorgeClark - 09 Jun 2015
 

ItemTemplate edit

Summary setting Set SKIN does not work in combination with Macro IF
ReportedBy JensSchloemer
Codebase
SVN Range
AppliesTo Engine
Component SkinCustomization
Priority Enhancement
CurrentState Proposal Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r2 - 09 Jun 2015, GeorgeClark
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