Different theme for administration

ninetwenty - April 25, 2006 - 13:46

Hi, I'm wondering if it is possible to have a different theme while administering a site? I basically want to have an admin site which is different to the site theme for the following reasons:

  1. The main site does not use sidebars so I'd rather not have them in the site theme
  2. The main site theme doesn't really suite being used for admin anyway

Is this possible to do?

Try this

llyra - April 25, 2006 - 14:08

Here's a link to a Drupal theme section that talks about creating a unique class/id for each page/section. It applies to the admin section(s) as well.

http://drupal.org/node/32077

For some reason though, when I added this code, the ticker does not appear listing what page is what class/id when in admin. I'm using 4.7 RC3. Still playing with it but thought you may use the admin section feature listed within this document.

You can try sections module

New Oceans - April 25, 2006 - 14:11

Sorry, don't have a lot of time (have an appointment). But what I usually do is download sections module, create two themes (one for admin, and one for default website) and separate them by defining the paths they use - or do not use.

Posted something about this here:
- http://drupal.org/node/58504#comment-110915

Success!

___________________
discover new oceans
lose sight of the shore

TAXONOMY THEME MODULE

serg - April 25, 2006 - 14:13

Your best bet is to install the TAXONOMY THEME module. With it you can use multiple themes on your site and it provides an area to specifiy a specific theme for the admin pages.

Check out how the "Burnt"

budda - April 25, 2006 - 14:33

Check out how the "Burnt" theme (available here on drupal.org) does it. In the template.php file is checks for the /admin/ in the url and inserts an additional css class in the main to allow you to style it wider etc.

You can do something similar using template.php

--
Drupal consultancy and Drupal theme design

I solved this by checking

solipsist - April 25, 2006 - 15:24

I solved this by checking arg(0) to see if it equals "admin", if so the menu appears in a special DIV because it doesn't fit in the default menu area.

I use custom CSS all across my site and I set the name of the current site section by checking URL and/or taxonomy terms. It's rather simple but it requires some coding.

Thanks for the swift

ninetwenty - April 25, 2006 - 15:51

Thanks for the swift replies, guys. Brilliant!

 
 

Drupal is a registered trademark of Dries Buytaert.