Jump to content

customize standard admin or a dashboard but only for a specific user role


stanoliver
 Share

Recommended Posts

Hello Community!

I found quite a  few ways or tools to style the admin or build a dashboard:

- the new way with the .less compilation (reno style, rock style)

- dashboard modules or tutorials how to build your own

- admin on stereoids

Vocabulary: With "admin like user" I do not mean a full admin but an user with quite a lot of priviledges ...

My problem is that I do want to change the admin template for every (admin like) user in a different way. Or if I would build a bigger dashboard certain functionlity should only be available for a few (admin like) users but not for everyone.

I would need different versions of the admin theme or the built dashboards for different admin users

To start with a very simple example:

Let's say I wanna give one (admin like) user a different background color (with css). 

Let's say I wanna have an extra button or tab for some (admin like) user which another (admin like) user should not have

How can I take advantage of processwire roles in all these examples I mentioned in the beginning?

 

 

Link to comment
Share on other sites

22 hours ago, stanoliver said:

Let's say I wanna give one (admin like) user a different background color (with css). 

Check the classes that are rendered within the body tag, you should see useful classes there to override css per-role.

22 hours ago, stanoliver said:

Let's say I wanna have an extra button or tab for some (admin like) user which another (admin like) user should not have

If you mean tabs/fields within the edit pages screen, there is a lot that can be made through roles and field permissions.

https://processwire.com/blog/posts/field-permissions-overrides-and-more-2.6.2/#granular-access-control-with-field-level-permissions

This post is old but I bet (without guarantee) that it most likely remains the same or very similar. 

22 hours ago, stanoliver said:

- dashboard modules or tutorials how to build your own

This Dashboard is super configurable and I bet you can simply wrap the configuration of the panels into some switch/if statements to deliver configurations per role/user.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...