Tags:
create new tag
view all tags

SID-00608: Customise skin/template depending on permissions

Status: Answered 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 wink 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Customise skin/template depending on permissions
SupportCategory CategorySkin
TWiki version 4.3.2
Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2010-01-03 - PeterThoeny
 
  • 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.