Question
I have made 2 different LeftBars containing different page liks. I want to create an if statement to decide which LeftBar should be shown depending on which TWikiGroup the user belongs to. How do I write the syntax for this? I have tried different expressions similar to the following:
%INCLUDE{"%IF{ "$ TWIKIGROUPS='GroupName' then="%TWikiWebName%.WebLeftBarGroupa" else="%TWikiWebName%.WebLeftBarGroupb" }%
Environment
--
LinaMattsson - 04 Aug 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Since TWiki 4.2 you can use this:
%IF{"'%USERNAME%' ingroup 'TWikiAdminGroup'" then="$percntINCLUDE{$quotMain.AdminLinks$quot}$percnt"}%
--
ArthurClemens - 08 Mar 2008