Here's the output of a ThemeKey debug (used in a view page):

No match: "drupal:path = node/#/Vote_Sized_Survey_-_Print_Layout ...
...
drupal:get_q
node/736/Vote_Sized_Survey_-_Print_Layout

... is there something wrong with my way I use _-_ in my url?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mkalkbrenner’s picture

What happens if you turn on "Property drupal:path is case sensitive" at "/admin/settings/themekey/settings"?

Nevertheless it might be a small bug in ThemeKey. I'll have a closer look ...

Vote_Sizing_Steve’s picture

Yes, turning on "Property drupal:path is case sensitive" gets the rule to work. Thanks!

mkalkbrenner’s picture

Title: Simple wildcard not working. » Toggle "Property drupal:path is case sensitive" does not work; drupal:path is always case sensitive
Version: 6.x-3.2 » 6.x-3.x-dev
Assigned: Unassigned » mkalkbrenner
Category: support » bug
Status: Active » Needs review
FileSize
945 bytes

It's a bug. The toggle "Property drupal:path is case sensitive" does not work. drupal:path is always case sensitive.
I attached the fix.

mkalkbrenner’s picture

FileSize
942 bytes

Same for ThemeKey 7.x-1.x-dev.

mkalkbrenner’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Neil McKay’s picture

Version: 6.x-3.x-dev » 7.x-1.5
Status: Closed (fixed) » Active

Themekey 7.x-1.5 is still having this issue for me. I compared the patch for D7 above with my themekey_base.inc and they are the same. Any advice?

Neil McKay’s picture

To be clear: toggling off "Property drupal:path is case sensitive" in my drupal 7 installation does not work; drupal:path is always case sensitive

mkalkbrenner’s picture

Version: 7.x-1.5 » 7.x-2.x-dev

First, update to ThemeKey 7.x-2.x, because we won't release any bug fixes for 7.x-1.x.

The code still looks good to me. But I'll give it a try ...

Where do you see that "drupal:path is always case sensitive"? Did you use ThemeKey Debug to see if your rules match or not?

Neil McKay’s picture

Sorry for the delayed response.
I turned on themeKey Debug and get an odd message:

My path is ?q=curriculum/contacts
If it is lower case, the debugging report says :
**************************

No match: "drupal:path = Beach >>> bea_omega_html5"
Match: "drupal:path = Curriculum >>> curric_omega_html5"
Switching theme to curric_omega_html5.

**************************

So that's ok. (except note that the drupal:path is upper case Curriculum

If I use upper case:
?q=Curriculum/Contacts

I get
**************************

No match: "drupal:path = Beach >>> bea_omega_html5"
No match: "drupal:path = Curriculum >>> curric_omega_html5"
No match: "drupal:path = curriculum >>> curric_omega_html5"
No match: "drupal:path = vista >>> vms_omega_html5"
No match: "drupal:path = fhs >>> fhs_omega_html5"

Using default theme.
**************************
(note that I have rules for both upper case and lower case)

I will be updating to 7.x-2.x and hopefully that will clear it up. But I wanted to respond with the detail here.
Thanks
Neil

Neil McKay’s picture

After updating to Themekey 7.x-2.x I still have the same issue.

In fact, i deleted my 2 rules (one for lowercase "curriculum", one for upper case "Curriculum") and readded one for upper case Curriculum and ...wait for it...
only the lower case address will use the rule.

So the rule states:
drupal:path = Curriculum

but the address has to be a lowercase curriculum in order for the rule to go into effect.

Neil McKay’s picture

Well I thought I solved the problem for myself by using a wildcard: %urriculum
But that caused ALL nodes to use the Curriculum theme.

Neil McKay’s picture

At this point it looks like upper case letters are not being recognized in any of my themekey rules. The rules are all basically Drupal:path=foo use this theme.
whether the rule lists the path as foo, FOO or Foo, it is only activated when the web address is foo in lower case. This had worked previously in my other rules and the only change that I have done is to upgrade themekey to 7.x-2.x

From the other discussions here, I am gathering that this is not a common problem at all so it's quite possible I'm doing something wrong.

For now, I'm using node:type = curriculum_static_page instead of drupal:path and that works consistently. But I'd like to be able to change the theme based on the path so that I can minimize the number of content types I have.

mkalkbrenner’s picture

Title: Toggle "Property drupal:path is case sensitive" does not work; drupal:path is always case sensitive » Toggle "Property drupal:path is case sensitive" does not work for path aliases
Component: Installation / Configuration » Code / API
Status: Active » Fixed
FileSize
1.42 KB

I found the problem. The case sensitve / insensitive switch didn't work for path aliases.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.