Tags:
create new tag
view all tags

Question

Right now, I've managed to create user-specific templates, and user-specific CSS files, to change my look-and-feel depending on who's logged in.

However, I'd now like to switch CSS/templates based based on the group to which the logged-in user belongs. (When our Twiki goes live, this info will be passed in via LDAP).

Is there a way to do this? I've tried setting a group-level template (which doesn't seem possible), and tried using a conditional statement to set CSS and skins, but I've come up empty-handed.

Thanks for any suggestions.

Environment

TWiki version: TWikiRelease04x01x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Skin

-- MatthewTait - 30 Jul 2007

Answer

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.

Specifically, we simply need to hide the "edit" buttons for customers. However, our customers will have individual user logins, so we need to use customer templates based on their Group. (This is different from all of the examples I've seen, which explain how to give templates for users who are not logged in).

-- MatthewTait - 31 Jul 2007

if all you need to do is hide the edit buttons, you should be able to do this by DENY-ing that group change access to those topics, and then making the existance of the edit button conditional on having edit access.

This is not done in the default skins as clicking edit is used as a trigger to log in. (now to try to remeber how to doit :/ )

-- SvenDowideit - 21 Aug 2007

Sorry, closing this after more than 30 days of inactivity. Please feel free to reopen the question.

-- PeterThoeny - 03 Oct 2007

One other approach would be to teach your developers to use the keyboard accellerator to edit (Alt-E). I have just done this on this page so you can see how it works. IE user may have to use Alt-E, then RETURN

<style type='text/css'>.patternButton {display:none}</style>

-- ColasNahaboo - 03 Oct 2007

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-10-03 - ColasNahaboo
 
  • 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.