I took a look and installed and tested this module.... and it seems ok & workin, BUT..
...I want to have different theme ONLY for administration (depending on role, like "editor"), but theme for front-end to be default!

Bassicaly, we will be using 3 themes
1- front-end theme (all suers)
2- admin theme with LOTS of options :) (only administrator)
3- editor theme ONLY for administration (with only a few important links) (only role 'editor')

is this possible and if it is... any bright ideas regarding this? :)

Comments

CinemaSaville’s picture

Would be a great feature.

ari-meetai’s picture

Title: Different admin theme for admin and for role(s) » Different theme for admin, by role

Changed the title. Check these out:

http://drupal.org/node/933470
http://drupal.org/node/297421

or you can use :

function phptemplate_preprocess_page(&$variables) {
    if ( arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == 'edit' ) {
    $variables['template_files'][] = 'page-yourcustom';
    }
}

in the template.php to select the page.tpl based on url

(http://drupal.org/node/794646#comment-2949042)

tiutiun’s picture

It looks it may be done playing with the weight of module in the "system" table
If weight = -1, the setting "Use administration theme for content editing" overwrites the RoleThemeSwitcher behavior
If weight = 0, then RoleThemeSwitcher functionality takes precedence.

Since version 6-1.6 RoleThemeSwitcher does not set its weight during installation phase, so by default weight = 0 - thus it takes precedence over "Use administration theme for content editing"

Weight may be updated by module util

I would propose the following schema:
1. Set weight of RoleThemeSwitcher as 0. If you install it on fresh Drupal installation - it should be set up to 0 from scratch
2. Set Front-End theme as Default theme in "Themes" interface
3. Create "admin" and "editor" roles and assign them respectively
4. Assign to "admin" role an "ADMIN" theme
5. Use interface "Use administration theme for content editing" to assign theme for Admin tasks
6. Assign to "editor" a "Default" theme in RoleThemeSwitcher interface, thus it will use "ADMIN" theme for admin tasks, and it will use Front-End theme for rest of the pages

Hope it will work :-)

tiutiun’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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