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 »
  • Using Profiles (Moderator: Dave Greenberg) »
  • ThemeKey 2.0 with CiviCRM 3.0 and CiviCRM Theme
Pages: [1]

Author Topic: ThemeKey 2.0 with CiviCRM 3.0 and CiviCRM Theme  (Read 1048 times)

hwdornbush

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
ThemeKey 2.0 with CiviCRM 3.0 and CiviCRM Theme
February 26, 2010, 02:09:34 pm
I am trying to capture a specific type of CiviCRM URL using ThemeKey 2, and the advice in http://drupal.org/node/549342 doesn't seem to help.

On my site, all pages use the default theme except Admin pages using the Administration Theme setting, and CiviCRM pages, using the CiviCRM Theme module to switch the CiviCRM pages to a theme that works for it. I tried to load ThemeKey 6.x-2.0-beta7, but I can't find any ThemeKey rule that will affect my page. I have created a block using a CiviCRM Profile, and copying the html into the block from the profile. The block appears on my Drupal page, as I wanted, but if a user enters the fields incorrectly, then CiviCRM goes to its error page, in this case, http://mysite.com/civicrm/profile/create&gid=7&reset=1.

I tried using the rule drupal:path, and to match = the following:
civicrm/profile/create&gid=7&reset=1
civicrm/profile/create
civicrm/profile/%
and even civicrm

When I tried the last one, and didn't get a different theme, it occurred to me that there could be a clash between ThemeKey and CiviCRM Theme modules.

Any ideas how I can get my web site to switch to my default theme for specific CiviCRM pages with my configuration?

Thanks,
Bill

hwdornbush

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
Re: ThemeKey 2.0 with CiviCRM 3.0 and CiviCRM Theme
February 26, 2010, 02:29:20 pm
PROBLEM FIXED

It was indeed an interference between ThemeKey and CiviCRM_theme modules. It occurred to me that I could disable CiviCRM_Theme and use just ThemeKey for switching themes. It worked.

Now, I have two rules:
drupal:path = civicrm/profile/create uses my default theme
drupal:path = civicrm uses my theme for CiviCRM

pbeakley

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
Re: ThemeKey 2.0 with CiviCRM 3.0 and CiviCRM Theme
May 03, 2010, 04:26:08 pm
Terrific solution, thank you! I tried wrestling with CiviCRM_Theme and just couldn't get it to do its thing.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • ThemeKey 2.0 with CiviCRM 3.0 and CiviCRM Theme

This forum was archived on 2017-11-26.