Closed (fixed)
Project:
ThemeKey
Version:
6.x-4.x-dev
Component:
Installation / Configuration
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2012 at 09:47 UTC
Updated:
21 Jan 2012 at 21:36 UTC
Hi
i want to switch theme for mobile OS`s but wonder how can i place link back to desktop theme on mobile theme (if user want to see site with desktop theme from mobile device)
Comments
Comment #1
novakov commentedComment #2
mkalkbrennerIf you switch to the mobile theme by detecting the client's OS you're not using page caching, right?
In this case I suggest to add a link to your mobile pages that triggers a callback that set's a session value like
$_SESSION['desktop_theme'] = 1;. This requires a little bit of coding. See hook_menu() for details.Than your rule chain has to check for this session value:
BTW the only way using page caching with mobile themes is to use dedicated (sub) domains like mobile.example.com and www.example.com. In this case it's easy to switch the theme according to the domain using
system:host.Comment #3
novakov commentedthanks a lot for the answer. think that dedicated domains is better choise because i`ll need page cashing