As per many mobile websites, it's nice to include a link in the footer that can override the theme to the main site.
Could achieve this with a link in the footer that would set a session variable indicating the override.
Then on future page inits it'd check for this, and if none set - fall back on the mobile theme.
Usually this is achieved with having a mobile subdomain or something similar... but this can't be a solution here.
Great and easy module though!
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1084656-theme-override-controls.patch | 3.76 KB | lance.gliser |
Comments
Comment #1
robloachSounds like a neat feature. Would it be a flag in the query string URL that would indicate to use the mobile theme?
Comment #2
simplyray commentedWould be interested in this feature - too. Espacially on tablets (e.g. iPad) this would be an really interesting and useful feature. Anyone already implemented/hooked "mobile theme" regarding this issue?
Comment #3
simplyray commentedQuick and dirty:
mobile_theme.module
For Frontend Module:
Comment #4
lance.gliser commentedGood afternoon everyone. I've worked up a patch that creates a block which can be used for switching back and forth between the mobile theme, and the default. Your mobile users will be able to use the switcher automatically if you put the block on the screen. A permission has also been created that will allow administrators to use the theme switcher as well if desired.
Try it out!
Comment #5
jschrab commentedApplying this patch fails for me (using Netbeans 7.0 to apply it) on Mobile Theme 1.2
Comment #6
lance.gliser commentedI made an additional enhancement to this code here to allow page cache to be disabled, and put the whole zip file up for the author's review at: http://drupal.org/node/1264504
Hopefully he'll take some action and tweak it all to his liking so we can get this in the next release.
Comment #7
MakeOnlineShop commentedHello,
Can I know if this function now exists in the module ?
Thank you.