Does anyone know how role theme switcher handles users assigned to multiple roles? Does it just arbitrarily pick one or is there some method that will allow me to predict which theme they will see?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | scshot.png | 14.74 KB | tiutiun |
Comments
Comment #1
tiutiun commentedThe order of assigning themes corresponds to the order of roles on interface admin/user/roles
The lower is the position of Role in list - the higher is priority.
Please examine attached image.
For ex.: User has roles "authenticated", "admin" and "NCP"
He will got theme, that corresponds to "NCP" role.
Comment #2
tempd5 commentedThanks @tiutiun
Feature request:
It would be useful if the admin could select the theme that is to appear for users with multiple roles. Maybe the default behavior would remain as it is now but there was an override option that would allow a certain role to take precedence in the theme assignment. (Maybe roles could be weighted--only for this module.)
Why it matters:
Many sites (mine included) have several roles, each with unique permissions. Since some roles do not use some blocks, those blocks do not appear in their respective themes. The way the system is currently, I need to rename all of the themes so that the "heaviest" will be last alphabetically so that users with multiple roles can get access to the themes with the most available blocks.
Comment #3
tiutiun commentedIt makes sense :-)
I'll think about it in future releases
By the way, could you please give a kind of sketch proposal - how would you like to see the interface with this feature?
Comment #4
tiutiun commentedComment #5
tiutiun commentedComment #6
escoles commentedThis seems to have fallen off the radar; since it's something we need to either have or work around (most likely at this point we will do the latter), I thought I would contribute a description of a use-case.
We're creating an application that will allow authenticated users with a low privilege-level to create notes that will present a checklist for their use. The checklist form will be interactive, displaying additional options dependent on the selected state of others. We want to be able to use an admin theme for site administrators, but force the presentation of a styled, 'public'-facing theme for other roles.
User interface: I think this could be a select-option element, inside a frameset labeled to indicate it's created by this module, and placed on the user edit form in close proximity to the role selection checkboxes. The label could be something like "Select a role to determine the theme."
Comment #7
tiutiun commentedThank you, escoles
This Use Case makes sense - thank you :-)
I'll see how fast can I implement it.
Comment #8
neslee canil pinto