Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-02-14 19:02:28

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Back-office, adding class "user group" and "user" to Body

To facilitate the adaptation of the back office for each user group and user, I propose to add to body of back office two CSS class :

  • One indicates the user group connected
  • Another indicates the login of the user connected
<body id="page-article" class="content {user-goup} {user-login}">
<body id="page-article" class="content publisher sacripant">

_ smd_admin_themes_ adds the ability to customize the theme by group and user but with different themes.
I do not know if this request should be here or should be a plug’in request ?

Offline

#2 2011-02-14 22:02:35

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Back-office, adding class "user group" and "user" to Body

sacripant wrote:

To facilitate the adaptation of the back office for each user group and user, I propose to add to body of back office two CSS class :

  • One indicates the user group connected
  • Another indicates the login of the user connected”>

+1

_ smd_admin_themes_ adds the ability to customize the theme by group and user but with different themes…

Yes, but you can base a theme on another. So you can use theme_a for publishers and theme_b (based on theme_a) which only differs for some display:hidden css rules. This is the solution I’m adopting for now but of course your first suggestion would be easier to manage.

Anyway I think txp 5 will be quite different from the txp 4.x series so I don’t know if this solution will still make sense.

Offline

#3 2011-02-19 13:43:10

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Back-office, adding class "user group" and "user" to Body

sacripant wrote:

…I do not know if this request should be here or should be a plug’in request ?

Hi sacripant,
I’ve written a plugin for this.

Offline

#4 2011-02-21 10:12:14

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: Back-office, adding class "user group" and "user" to Body

Youhououou.

I regret the few answers. But finally a single answer has been sufficient to fill my need.
I’ll try it right away.

Thks Redbot

Offline

Board footer

Powered by FluxBB