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
--
MatthewTait - 30 Jul 2007
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.
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