Mobile website, best practice
Posted 09 June 2011 - 02:41 PM
I've programmed a website for computer browsers, but would like to expand with a mobile version.
Right now I've got all view files in one theme and view folders for each language.
The problem is; for mobile content I only need to change the layout file, but would like to have the ability to change the view file too.
What is best practice? How do you do? And is it possible to use one theme but another theme as backup, if files don't exist?
Thanks for your input!
Posted 09 June 2011 - 03:01 PM
It might sound as it is a bit more work, but in the end, maybe the versions should stay separate.
For the mobile websites, you'll always do workarounds and tweaks so that you can mimic the browser behavior on mobile devices, this means, in the long run, you'll have advantages if you separate them(only the themes of course).
Posted 09 June 2011 - 05:17 PM
You can use media queries, a feature of CSS3.
<link rel="stylesheet" type="text/css" media="screen and (max-device-width: 480px)" href="shetland.css" />
Sounds very interesting.
I am planning to take it for a spin 'real soon'.
Posted 07 December 2012 - 12:43 AM