SID-00608: Customise skin/template depending on permissions
| Status: |
Answered |
TWiki version: |
4.3.2 |
Perl version: |
|
| Category: |
CategorySkin |
Server OS: |
|
Last update: |
16 years ago |
I am using: TWiki 4.3.2
I'm getting to grips with the templating system, but one thing I am having trouble with is that, for example, I want to display some links / actions to admins - that I don't want to display to regular users.
I have tried setting different skins in the
TWikiUsers page (for the particular admin) - just as a test, but it is over-ridden by the web-preferences.
Ideally what I want to do is to be able to use a simple IF statement in the web preferences so that if the user is an Admin they use the patternskin - else they see the restricted one.
If that's not possible, can I do an IF statement in the different TMPL files to check if the user is an admin.
Presumably there is a wikiway of doing this sort of thing

So if there's a better / standard way to do this - please point me in the right direction.
Thanks for any and all help,
Patrick
--
PatrickDavey - 2009-11-04
Discussion and Answer
How about simply setting a
SKIN = pattern setting in the profile pages of all admins?
--
PeterThoeny - 2010-01-03
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.