Hello everyone,
i'm trying to make a mobile version of my website.

This website is kind of community-driven world map of restaurants.
Anyway, i need to make a mobile version of it. I know there are tons of tutorials about this topic but they mainly says how to install device-detecting module and which themes are good for mobile devices - and it's not what i'm looking for.

The problem is i can't just use different theme, my mobile website will look and act a bit differenent than the main page so i'm looking for any solution for share content between two drupal installations (with CRUD functionality). I was trying to do this by setting the same table prefixes for tables like node etc. for both installations but i'm not sure if that's the best solution i should use.

Have you any ideas or advices?
Anything would be appreciated :)

Comments

vm’s picture

if you want a responsive theme see: http://drupal.org/project/omega or one of the others that are repsonsive. IIRC there are a handful.

there is also http://drupal.org/project/themekey and http://drupal.org/project/mobile_tools

ravis’s picture

you can also search on Google "how to make responsive themes".
There are lots of tutorials for designing responsive themes.

I work at Drupar.com

bajki’s picture

hey, thanks for your replies! :)

but i'm affraid you misunderstood my request, i know how to create responsive themes, i know about those modules you've send but that's not what i need.

I need to know how to share contents between two independent drupal instalations. As far as i know, it can be done by rewriting table prefixes in settings.php or using client/service modules but i'm affraid those solutions are not sufficient. Isn't there any modules which will let me do such a thing ?

vm’s picture

if sharing tables isn't sufficient for sharing your content, you've two other options. The feeds.module to feed the content from one site to another or perhaps the domain.module

bajki’s picture

yeah, domain.module is the thing i was looking for, thanks for your help

rlnorthcutt’s picture

You can also accomplish this with a basic multi-site setup.

  1. Create a multisite setup for your mobile users (like m.domain.com or domain.mobi). Point this to your primary site and create the proper folder and settings.php in the sites folder.
  2. Then you use the theme override in settings.php to use a mobile theme for this site.
  3. Create variations of your menus/views/templates that are designed for a mobile device.
  4. Use context (or just the block system) to serve the proper blocks/menus and you should be set.

Then you can just add some code to redirect mobile users or give them the option between the full and mobile versions (lots of choices here)

This will work very well for smaller sites and can be very effective on large sites as well. It adds almost no new overhead or complexity to the system, and only uses the basic tools to make it work.

ron

regards,
Ron Northcutt
Directory of Technical Marketing, Acquia