Goin' Mobile

January 29th, 2009

When my Mobile Media instructor, Dave Carrol, asked us to setup a mobile version of our website for our particular cell phone (I've got an iPhone). I have to admit I felt a bit stressed. I've grown so comfortable with Drupal as a platform, the thought of hand coding something just didn't appeal to me. Especially performing updates (eek!). The problem with developing a mobile version of a Drupal site is getting rid of all the excess content (especially on a portfolio site that is media rich).

However, after googling a bit, I was excited to find that Rob Loach had done all the hard work. Rob has taken Joe Hewitt's iUI and made a Drupal theme out of it. The theme just uses the Primary and Secondary links (along with Details for whatever is on the front page). Since the majority of my content isn't made for a mobile device, I disabled the Primary Links in the iUI theme and enabled the Secondary Links.

After I post this, I'll be adding everything I want on the mobile site to the Secondary Links menu. Right now I'm going with the Switchtheme module to call the proper theme (redirecting from the mobile subdomain). However, I might have to checkout some other modules to get browser detection to do it automatically.