Hi,

for a website, i need to limit the admintheme to a specific role.
Now, if i enble the admin theme, all the users, even anonymous users see that admin-theme on specific pages.
But i also want to let anonymous users to make a node, so the admin theme has to be limited by role.
All other roles have to see the whole site with the standard theme.

I found a module 'theme per role', but here that chosen role sees the whole site with the admin theme, not only the administrator pages and addnode pages.

I hope you can see with i'm trying to explain, otherwise please ask...

I looked at the drupal site, asked twice on the drupal support irc channel, even asked on experts-exchange, but no one yet could help me. :(

greetings,
tom

Comments

WorldFallz’s picture

you might be able to do this with the http://drupal.org/project/sections module

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

betz’s picture

Alright! Will try this immediately, but looks very promising.
Thanx for your help!

Architeck’s picture

I can confirm that the sections module http://drupal.org/project/sections can be used to achieve an administration theme by role setting.

I tried the role_theme_switcher module and adding conditions to my template.php file, disable those modules and use sections module with page specific visibility settings.

my settings show only on the listed pages.

admin*
node/add*
node/*/edit*

You should also toggle off the "Use administration theme for content editing" under Site configuration > Administration theme (/admin/settings/admin)

Geoff Palin

Anonymous’s picture

Commenting that this indeed does work for those that were referred here from another thread.