I have a test site at test.example.com. I would like to have the mobile devices sent to test.example.com/mobile. I have been able to get the redirect to work but the theme doesn't switch. I have created a page at test.example.com/mobile that I would like to have links to test.example.com/mobile/page1, test.example.com/mobile/page2, etc, with all of them using the mobile theme. Is this possible or should I just add mobile.example.com directly to the live site? If so how would I accomplish this. I would like everything to run off one drupal site.
Comments
Comment #1
flyingyoda51 commentedSome more info:
If I set both the mobile URL and desktop URL to test.example.com and then set the 'Default mobile front page:' to /mobile and also select 'Switch theme based on the URL' then it changes the default home page for the site to /mobile. The crazy part is that on my desktop when I go there I get the mobile theme but when I go there on my iPhone I get the default theme. Whatever is set in 'Default mobile front page:' overrides 'Default front page:' at /admin/settings/site-information. I am now using 6.x-2.x-dev, in hopes that it would fix the issue
Comment #2
minoroffense commentedIf all you want is theme switching you can try the themekey module. It allows the modifications based on certain conditions.
It's what we're using in the 3.x version of mobile tools.
Give that a shot and let me know how it works out.
Thanks!
Comment #3
flyingyoda51 commentedSo I seem to somewhat have it working after using this tutorial here: http://www.drupalinternetbusiness.com/content/ultimate-drupal-6-mobile-s...
But the theme only switched when I am logged in. Any ideas?