CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How do I set CiviCRM to inherit the Administration theme from Drupal?
Pages: [1]

Author Topic: How do I set CiviCRM to inherit the Administration theme from Drupal?  (Read 1600 times)

WeChewie

  • Guest
How do I set CiviCRM to inherit the Administration theme from Drupal?
March 22, 2010, 06:06:36 pm
In CiviCRM 3.0, I set it up so that the CiviCRM theme was the same as the Administration theme (Garland) from Drupal.

But I can't see how to enable that in CiviCRM 3.1...

This is actually pretty important because our base Drupal theme is optimized for anonymous visitors, and is somewhat narrow to accomodate the widest possible number of screen resolutions. But CiviCRM has a lot of wide screens, so we want a more flexible theme for the people using CiviCRM data entry screens.

What is the secret? I know I had this working in 3.0.

Thanks!

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: How do I set CiviCRM to inherit the Administration theme from Drupal?
March 23, 2010, 03:13:34 pm
This is usually handled through a Drupal module:
http://drupal.org/project/civicrm_theme
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

WeChewie

  • Guest
Re: How do I set CiviCRM to inherit the Administration theme from Drupal?
March 23, 2010, 06:35:28 pm
Quote from: geilhufe on March 23, 2010, 03:13:34 pm
This is usually handled through a Drupal module:
http://drupal.org/project/civicrm_theme

Thanks. I will check that module out.

However, it does look like there have been a number of issues with it ( http://drupal.org/node/568710 ), and it's not clear if it's being maintained (last update Jan 2009).

In CiviCRM 3.0, I didn't have to install a custom module, though. The CiviCRM screens inherited the Administrative theme.

Is there another way to accomplish what I am trying to do?

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: How do I set CiviCRM to inherit the Administration theme from Drupal?
March 24, 2010, 04:10:40 am
You can modify or create a template just for Civi.  It should be named page-civicrm.tpl.php and be placed in your theme folder.  Take out a sidebar, drop the photo header, what ever...
Lead Developer, C3 Design.
Twitter: @FatherShawn

WeChewie

  • Guest
Re: How do I set CiviCRM to inherit the Administration theme from Drupal?
March 25, 2010, 11:54:42 am
Quote from: FatherShawn on March 24, 2010, 04:10:40 am
You can modify or create a template just for Civi.  It should be named page-civicrm.tpl.php and be placed in your theme folder.  Take out a sidebar, drop the photo header, what ever...

Thanks for the tip, I may end up having to do that.

What I would really like though is just to find out where in the code CiviCRM is defining the path to the theme directory, and hardcode the path to Garland theme. Garland works great with CiviCRM.

Can anyone steer me in the right direction?  ???

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: How do I set CiviCRM to inherit the Administration theme from Drupal?
March 25, 2010, 05:22:03 pm
I could be wrong, but I don't think that's how Drupal works.  I think that the "Administrative theme" is keyed off the path.  All those pages start with /admin, but the Civi pages start with path /civicrm so your default theme is chosen.  If you don't want to code a template for civi, you might look at http://drupal.org/project/themekey
Lead Developer, C3 Design.
Twitter: @FatherShawn

WeChewie

  • Guest
Re: How do I set CiviCRM to inherit the Administration theme from Drupal?
March 28, 2010, 07:18:18 pm
I finally figured out what was going on.

In my earlier instance, I had enabled the privilege allowing my user to set their own individual theme (to Garland) and I had set the default theme to a custom theme (optimized for anonymous users).

So the solution (for me) will be to set CiviCRM users' individual theme preference to Garland and just train them to log out of Drupal/CiviCRM if they want to browse the front-end site from an (anonymous) end-user's perspective.

Thanks to everyone for their suggestions!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How do I set CiviCRM to inherit the Administration theme from Drupal?

This forum was archived on 2017-11-26.