Per member group
Closed this issue · 7 comments
First off, thanks for writing the Control Panel CSS plugin. One thing I thought of was that it would be cool if you could define custom CSS on a per member group basis. Not sure what's involved technically with this but would be awesome for a number of things.
Thanks, glad you like it! That's a pretty interesting suggestion... lemme give it some thought, but that could be an cool new feature.
The only catch is, a user can belong to more than one user group. How would a situation like that be handled? I'd imagine that the CSS for each group would all get loaded.
I agree. Just load all relevant CSS. Would be cool for your jquery plugin
too! :-)
Sent from my iPhone
On Nov 5, 2014, at 5:15 PM, Lindsey DiLoreto notifications@github.com
wrote:
Thanks, glad you like it! That's a pretty interesting suggestion... lemme
give it some thought, but that could be an cool new feature.
The only catch is, a user can belong to more than one user group. How
would a situation like that be handled? I'd imagine that the CSS for each
group would all get loaded.
—
Reply to this email directly or view it on GitHub
#4 (comment)
.
Hmm... yes. I think I like it!
I'm not sure when I'll have a chance to make those adjustments, but consider them "on the list". :)
@jacobgraf Digging up this old thread... I've decided to make a formal feature request to solve multiple problems at once...
👍
Looks like the feature request got vetoed... so I made a custom plugin for it instead...
https://github.com/lindseydiloreto/craft-cpusergroup
That plugin will add user group classes to the <body>
tag automatically. You can then use CP CSS to target each group individual, and customize your CP differently for each group!
Awesome! Thanks Lindsey!