Hi,
I wonder if someone could help me. I am a total drupal beginner, i can just about install a new module, and tweak CSS and php files, but i'm not able to create my own code.
I have a problem with the mobile version of my site.
I have set up a mobile site using the 'Mobile Tools' module.
This automatically creates new roles for mobile users, which, in theory would allow you to use the front_page settings to redirect mobile users to a different home page. However, for some reason (i thinkdue to an issue in that module), this does not function correctly, and I havent had a response from the developer for a couple of months, so i am trying to find another workaround.
Mobile tools does some helpful things. it automatically detect mobile devices, and creates and redirects them to a subdomain (m.mysite.com), as well as automatically implementing a different theme for mobile users.
However, i want to redirect mobile users to mysite.com/mobile-home, as currently they are sent to mysite.com/normal-home, which is not easy to navigate on a mobile device!
I thought it might be possible to redirect users dependent on the theme, but i dont know how to do this.
Somebody might also have a better solution.
Any help would be greatly appreciatied!
Tom
Comments
Comment #1
gnarlytom commentedUPDATE:
Hi,
i found this old issue that looks pretty promising!
http://drupal.org/node/142796
so, ill give this a go. where does this code need to be inserted? into the the front_page.module file somehwere?
I tried putting it in the front_page.module file just after the:
"// the following is the code that loads the front_page settings"
but this didn't work
Thanks
------------
UPDATE
I have managed a workaround using the panels module, so this is now fixed
Comment #2
gnarlytom commented