Is there any way that drupal can 'know' that a given request has come from a mobile phone so that my module can return a page using a different theme template? -- ----------------- Bob Hutchinson Midwales dot com -----------------
Is there any way that drupal can 'know' that a given request has come from a mobile phone so that my module can return a page using a different theme template?
I googled for "Drupal mobile theme" and the first result is http://drupal.org/project/mobile_theme Answers your question. F
Another approach is using a "responsive grid" theme+module set like Omega+Delta+Context. We've started moving in that direction instead of "theme switching" and clients are generally happier with the approach. This is not, of course, a one-off / one-page solution, but it's pretty nice if you can plan around it for an entire site. http://drupal.org/project/omega On Thu, Jun 9, 2011 at 10:03 AM, Fred Jones <fredthejonester@gmail.com> wrote:
Is there any way that drupal can 'know' that a given request has come from a mobile phone so that my module can return a page using a different theme template?
I googled for "Drupal mobile theme" and the first result is http://drupal.org/project/mobile_theme
Answers your question.
F
This question really belongs in the support list. This is the development list, pertaining to actual coding. Also the first result for Google on "drupal mobile detect" brings up this: http://drupal.org/project/mobile_tools Google "drupal mobile" and you'll get tons of results, including a Drupal group dedicated to mobile devices. Jamie Holly http://www.intoxination.net http://www.hollyit.net On 6/9/2011 9:58 AM, Bob Hutchinson wrote:
Is there any way that drupal can 'know' that a given request has come from a mobile phone so that my module can return a page using a different theme template?
On Thursday 09 June 2011, Jamie Holly wrote:
This question really belongs in the support list. This is the development list, pertaining to actual coding. Also the first result for Google on "drupal mobile detect" brings up this:
I should have googled first ;-( I specifically posted this to the development list as I was assuming this was something I would have to code into my module but clearly it isn't, nice to know Thanks to all
Google "drupal mobile" and you'll get tons of results, including a Drupal group dedicated to mobile devices.
Jamie Holly http://www.intoxination.net http://www.hollyit.net
On 6/9/2011 9:58 AM, Bob Hutchinson wrote:
Is there any way that drupal can 'know' that a given request has come from a mobile phone so that my module can return a page using a different theme template?
-- ----------------- Bob Hutchinson Midwales dot com -----------------
Also look at the Omega V3 theme which detects and automatically reformats for the device. There is a link to a video on the project page. Nancy E. Wichmann, PMP (781) 697-6344 Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________ From: Bob Hutchinson <hutchlists@midwales.com> To: development@drupal.org Sent: Thursday, June 9, 2011 9:58 AM Subject: [development] mobile phone access
Is there any way that drupal can 'know' that a given request has come from a mobile phone so that my module can return a page using a different theme template?
-- ----------------- Bob Hutchinson Midwales dot com -----------------
participants (5)
-
Bob Hutchinson -
Brian Fending -
Fred Jones -
Jamie Holly -
Ms. Nancy Wichmann