Multisite for Mobile?

Events happening in the community are now at Drupal community events on www.drupal.org.
dgreenyc's picture

I've been driving myself crazy trying to set up a mobile version of a Drupal 7 site - i've read that multisite might be a solution. What i'm trying to do is have two sites that use the same database - i've made a copy of the default sites directory and renamed it 'mobile'. I'm going on the idea that users on mobile devices will be redirected to mobile.mysite.com and Drupal multi-site will use the settings file in the mobile folder to change the theme of the mobile site. Things seem to be working partially - the mobile site is picking up some of the variance overrides that i've made in the settings file but the mobile site is having trouble picking up images stored in the style folder inside the default folder.

Looking at the image URL - on the main website, the URL is:

/sites/default/files/styles/medium/public

But on the mobile site the image URL is:

/sites/mobile/files/styles/medium/public/

is there a way that i can set the path to always use /default/ so the images work in the site using an alias?

I'm kinda new to Drupal so any help you can offer is appreciated.

Comments

Take a look at the Omega theme

billp44ruby's picture

I'm not an expert, nor do I know your exact purpose, but I think this is a theme issue, not a site issue. If you want to show the same content, but want to display it in a different format with different style treatments depending on the device accessing the site (mobile, tablet, desktop) then you want to look at "responsive designs" rather then building multiple sites.

I'm in the process of making my site available regardless of device and that is the approach I'm taking. I'm using the Omega theme (http://drupal.org/project/omega), but I believe Adaptive theme (http://drupal.org/project/adaptivetheme) might be worth a look as well.

Responsive theme is not going to work

dgreenyc's picture

Thanks, billp44ruby for the quick response - unfortunately a responsive theme is not my solution. I'm using the Sky theme as the base theme. The problem is we're pretty far down the development path now and i've put in a lot of customizing the look and feel, including adding a rotating banner that does not resize. if there were a way that i could hide the banner and other modules when viewing the site on a mobile device, i think i could use the Tablet and Mobile views to solve my problem. I've also tried Themekey but ran into issues with cache, and Mobile Tools is not stable for Drupal 7 - plus there's currently an issue with Browscap in Mobile Tools.

Responsive theme

manuel_mra's picture

I have found this podcast : http://mustardseedmedia.com/podcast/episode52 that perhaps can help you.

Manuel.

Try this module

juangarayiwi's picture

Hey, you should try out this module:
http://drupal.org/project/mobile_switch

I've used it in the past. It's simple, you will assign a theme to mobile devices, Drupal with auto-detect them and automatically switch to your "mobile" designated theme. Same content, but different output.
Hope it helps.
J

I don't know if it will help

wxman's picture

I don't know if it will help in your situation, but I've built a whole multisite using adaptive theme http://drupal.org/project/adaptivetheme. It has a ton of great features for mobile customizations. It's not live right now to see, but the end results after customizing the theme look almost like I made a mobile app for the site.

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: