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) »
  • Discussion (deprecated) »
  • Professional CiviCRM Services (Moderator: Dave Greenberg) »
  • Hack the civicrm_theme module to display the contribution page (quote needed)
Pages: [1]

Author Topic: Hack the civicrm_theme module to display the contribution page (quote needed)  (Read 2331 times)

Whygee

  • Guest
Hack the civicrm_theme module to display the contribution page (quote needed)
June 14, 2009, 09:03:01 pm
I would like to know if someone can hack the civicrm_theme module to display the contribution page in a different theme.

See this thread for the original discussion: http://forum.civicrm.org/index.php/topic,7274.msg31910.html

Thanks.

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Hack the civicrm_theme module to display the contribution page (quote needed
June 15, 2009, 06:01:16 am
Alternatively, you can use some handy Drupal modules to force certain pages to a specific theme.

install themekey: http://drupal.org/project/themekey

then in that configuration, you can configure a specific path to be in a specific theme. Meaning you can put in your contribute pages (and I believe it also accepts wildcards) and force them to a specific theme (all of this without hacking anything).

The one thing I am not sure about is if themekey will deal with the civicrm parameters in the URLs (everything after the ? in the url). So you might also need to use the path redirect module: http://drupal.org/project/path_redirect

once you have this, you can redirect your contribution page(s) to a drupal alias (like mysite.com/contribute) instead of the not-so-nice looking civicrm urls.

Whygee

  • Guest
Re: Hack the civicrm_theme module to display the contribution page (quote needed
June 15, 2009, 08:09:44 am
Thank you, it worked even without Path redirect.

This thread can be closed.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Professional CiviCRM Services (Moderator: Dave Greenberg) »
  • Hack the civicrm_theme module to display the contribution page (quote needed)

This forum was archived on 2017-11-26.