Hi, I used Role theme switcher mainly to force admin theme to the front-end theme for users with certain roles (general site users rather than admins) but the node/edit pages they are exposed to (their profile nodes for example) are showing up in the back-end theme which is not assigned to their role.

How do I use the chosen role-based theme for node/edit pages?

Comments

tiutiun’s picture

Assigned: Unassigned » tiutiun

Hmm
It looks there may be some other modules that could set up other themes for node/edit pages

Could you please:
1. Send me screenshot of your Role Theme Switcher preferences
2. Screenshot of "Administration theme" settings. It is here: /admin/settings/admin

Thank you

tiutiun’s picture

UP
Any news?

ta5ae’s picture

Dear all,

I have a similar problem. I want to use role them switcher module to change the theme of the site, including the administration theme, used for specific roles.

At present some pages, such as /admin/content/node, appear in a different theme than the one selected for that role, in my case the default theme.

Current settings:

Role theme switcher

Anonymous user: Default (a custom theme)
Authenticated user: Garland
Administrator: Garland
Editor: Root candy

I have this set up for the 'Administration theme': Use system default and 'Use administration theme for content editing' unchecked.

It seems as if, the administration theme setting overrides anything set using the role theme switcher, which is not what the documentation suggests.

Thanks.

tiutiun’s picture

Hello, ta5ae

Thank you very much for debugging
Yes, it looks that Role_Theme_Switcher doesn't override "Administration Theme" settings.
By the way, when you set Administration Theme to "System default" and uncheck "Use the administration theme when editing existing posts or creating new ones" - then Role_Theme_Swither behavior is the same as expected?

ta5ae’s picture

Hi,

If I do the above and keep the role theme switcher settings as described above, I still have the problem of this page /admin/content/node appearing in the default theme for the editor role instead of the specified, root candy.

However, if I change the theme associated for the Editor role to be Garland then the theme stays switched for this page, /admin/content/node. NB: I cannot make this happen for other themes. For instance, I tried various other themes as in place of root candy and Garland with the settings described above to no avail. Also switching all non anonymous roles to use the same non garland theme, still has the problem.

HTH.

tiutiun’s picture

Hello, ta5ae

Could you please connect me via
Skype: serj.tiutiun
or
ICQ: 322379814

I'll try to help you online

venutip’s picture

I wrote a small module based on RTS that lets you specify the admin theme by role. I could release it as a separate module, but I think it would make sense if we merged the changes into RTS.

@tiutiun, contact me if you want to have a look at the module or discuss this more.

tiutiun’s picture

The setting Home->Administer->Site configuration->Administration theme "Use administration theme for content editing" - if it is enabled, this setting overwrites the Role_Theme_Switcher behavior. So probably you would like to disable "Use administration theme for content editing" setting.
Role_Theme_Switcher consciously do not overwrite "Use administration theme for content editing" - if something can be done via Drupal interface just disabling the checkbox, it should be done there.

Could you please check if this text brings some light to the problem?

GBain22’s picture

Hi,

I'm having the same issue, if you disable "Use administration theme for content editing" then set the specific role to use "Garland" then they constantly see Garland whether viewing or editing the page. However, the admin now has to use Garland instead of the specified admin theme.

Are there any advances with this? I've tried a few modules but none seem to work the way it's intended to. They were: "Theme Setter" and I also tried "Sections".

Cheers, Garry.

tiutiun’s picture

Hello, Garry,

If I understood correctly - at the moment you have only two roles: Authenticated user and Anonymous user, and you have assigned Garland to Authenticated user. Am I right?
If it is so - then it is an expected behavior.

What would I advice: if you want to show two different themes for admin and for regular authenticated users, you should create a separate role for admin, and you should assign to this role the theme that you would like to show to admin

Please let me know if it works for you

Thank you

tiutiun’s picture

Status: Active » Fixed
rhapsodic’s picture

Hey there,

Great module, but I'm wondering if it were at all possible to add a check box that would allow for theme switcher to override admin theme for content?

Here's the situation.
I have 3 roles.

Role: Anonymous: Only views the "front-end" theme.
Role" Authenticated: Only sees the "front-end" theme. But this role can add forum topics and small things. (But I don't want this role to use the "admin" theme)
Role: Administrator: Sees front-end for viewing, but uses "admin" theme for editing content. (So I have to use the "Use administration theme for content editing" checkbox).

But of course this check boxes overrides everything. So I need the option to override that checkbox, but for only the "authenticated" role.

This possible somehow?

Thanks!!

tiutiun’s picture

Hello rhapsodic

I would suggest to create a separate role for users, that are "authenticated" and are not "admins", and assign to this role a "front-end" theme

RTS cannot be used in your case to override theme for admin, because it will use the same theme for admin and front-end pages, so I would advice to create an additional role for authenticated non-admins, for ex "common users"

Please let me know if this solution works for you

Thank you

rhapsodic’s picture

I see what you mean.

It would be nice though later to have an option that will make a Role use a certain theme no matter what.

For example:

1) I had "Use administration theme for content editing" checked (turned on)
2) I had a specific role that WAS an administrator, but I wanted to use the 'front-end' theme, no matter what, so this role would see only the front-end theme for both admin pages and front-end pages.

So the result would be:

1) I can have one type of administrator that would see both front-end and admin themes.
2) I can have another type of administrator that would only see the front-end theme.

Thanks for the help though :D :D :D

Cheers!!

tiutiun’s picture

Status: Fixed » Active

I see your point and agree with it :-)
It will be fixed in next release, possibly these weekends

As temporary solution - you can make lower the weight of module "RTS", from "-2" to "0"
You can do it in table "system" or using additional module util

High weight was used to avoid problems with modules, that start using theme before RTS was able to change it, like "nodewords"
I believethat ability to override "Use administration theme for content editing" checkbox by default is more important, than solving possible problems with other modules, as far as these problems can be easily solved by attributing proper weights to these modules

Thank you for the valuable feedback

tiutiun’s picture

Could you please check last version, 6.x-1.6
I've tried to fix the issues - could you please test it, if it works for you?

Thank you

tiutiun’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.