I can select a different theme with http://foo.bar/news and http://foo.bar/news/newsarticle, just by adding at the path-tab news and news/%

But this puzzles me: how can i set up this kind of pages: http://foo.bar/news?page=1 ??? news% and news?% or news?page=# aren't working. Just using the right type under properties does also not work.
However, news?page=1 is just working ... hmm strange ... how do i use the wildcards?

Can someone help me with this?

Comments

spydmobile’s picture

Im in the same boat here.

I have a node like so:
http://smapp02/cms/content/ember-map
This uses content/ember-map to switch the theme. Great, but If I use the node, the node changes itself somewhat like so:
http://smapp02/cms/content/ember-map?zoom=5&lat=64.49378&lon=-121.5&layers=B0000TTF
Now ThemeKey doesnt change the theme.

In a wildcard situation, I should have been able to add:
content/ember-map%
to get themekey to switch over regardless of the rest of the URL. or are wildcards in ThemeKey not like a wildcard in drupal?
content/ember-map% <> content/ember-map*
Franco

profix898’s picture

You shouldnt need any additional wildcards in the path for this kind of url parameters at all.
Example: To switch the theme for a simple node (nid=20) you would enter 'node/20' for the path. Theme switches to the selected one. If you now add a parameter to the url, say 'node/20?abc=def' it works the same as before (without any change to the path).

mkalkbrenner’s picture

Title: Url with http://foo.bar/news?page=1 (and page=2 etc) » Get parameters break theme switching based on url aliases
Component: Documentation » Code / API
Assigned: Unassigned » mkalkbrenner
Category: support » bug

On drupal paths like 'node/20' it works like described at #2. The additional parameters are ignored for theme switching decision.
On aliased path the issue occurs like described in the issue and at #1.

mkalkbrenner’s picture

Title: Get parameters break theme switching based on url aliases » GET parameters break theme switching based on url aliases
Version: 6.x-1.x-dev » 6.x-1.2-beta4
Status: Active » Fixed

will be fixed in 6.x-1.2beta5

mkalkbrenner’s picture

Status: Fixed » Closed (fixed)