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 Drupal Modules (Moderator: Donald Lobo) »
  • ThemeKey with CiviCRM URL and those missing trailing slashes
Pages: [1]

Author Topic: ThemeKey with CiviCRM URL and those missing trailing slashes  (Read 1906 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
ThemeKey with CiviCRM URL and those missing trailing slashes
August 14, 2009, 04:10:49 pm
(originally posted here by Robert http://drupal.org/node/549342 - i have slightly modified to combine two posts)

I am currently using ThemeKey with CiviCRM. By specifying this path:

civicrm/%

Most CiviCRM pages change to the correct theme.. except for URL's that don't have a trailing slash, for example:

http://site.com/events

Is not treated the same as:

http://site.com/events/

http:///civicrm?reset=1

Could you give some advice regarding the correct path pattern to grab these URLs as well? I have been trying various patterns but not having much luck.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: ThemeKey with CiviCRM URL and those missing trailing slashes
August 14, 2009, 06:13:31 pm

can u specificy

civicrm%

will that solve the issue?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: ThemeKey with CiviCRM URL and those missing trailing slashes
April 23, 2010, 03:02:55 pm
nope, doesn't work

civicrm% gives error 1) A wildcard could only be used to replace part(s) of the path but not for parts of a word

civicrm?reset=1 gives

Query strings will be striped before a drupal path is precessed. Maybe you want to chain drupal:path and system:query_string or system:query_param (both provided by additional module ThemeKey Properties).

Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • ThemeKey with CiviCRM URL and those missing trailing slashes

This forum was archived on 2017-11-26.