Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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?
Comment | File | Size | Author |
---|---|---|---|
#14 | 1030268.patch | 1.42 KB | mkalkbrenner |
#4 | 1030268-D7.patch | 942 bytes | mkalkbrenner |
#3 | 1030268-D6.patch | 945 bytes | mkalkbrenner |
Comments
Comment #1
mkalkbrennerWhat 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 ...
Comment #2
Vote_Sizing_Steve CreditAttribution: Vote_Sizing_Steve commentedYes, turning on "Property drupal:path is case sensitive" gets the rule to work. Thanks!
Comment #3
mkalkbrennerIt's a bug. The toggle "Property drupal:path is case sensitive" does not work. drupal:path is always case sensitive.
I attached the fix.
Comment #4
mkalkbrennerSame for ThemeKey 7.x-1.x-dev.
Comment #5
mkalkbrennerComment #7
Neil McKay CreditAttribution: Neil McKay commentedThemekey 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?
Comment #8
Neil McKay CreditAttribution: Neil McKay commentedTo be clear: toggling off "Property drupal:path is case sensitive" in my drupal 7 installation does not work; drupal:path is always case sensitive
Comment #9
mkalkbrennerFirst, 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?
Comment #10
Neil McKay CreditAttribution: Neil McKay commentedSorry 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
Comment #11
Neil McKay CreditAttribution: Neil McKay commentedAfter 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.
Comment #12
Neil McKay CreditAttribution: Neil McKay commentedWell I thought I solved the problem for myself by using a wildcard: %urriculum
But that caused ALL nodes to use the Curriculum theme.
Comment #13
Neil McKay CreditAttribution: Neil McKay commentedAt 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.
Comment #14
mkalkbrennerI found the problem. The case sensitve / insensitive switch didn't work for path aliases.