Mobile site version

Discussion in 'Templates, HTML, CSS, and Design Help' started by jason1971, Apr 16, 2015.

  1. jason1971 Customer

    Hi all,

    Hope you're all well and had a good Easter?

    Ok, I would like to create a mobile version of my website (which design wise I can do), my issue is the initial setup.
    1. I am assuming I would have to do a new install?
    2. This is my main problem - How do I use / access the same database as my main website (so the current listing on my main site also appear on my mobile version)?

    Thanks so much for any advise

    Jason.
  2. freeze2 Super Moderator

    Hey Jason, you actually don't need to have 2 installs, but rather one installation with a regular template and a mobile template. Mike's worked on a module that determines which template to show based on what the user is viewing the site on...maybe send him a message for details on that.
  3. jason1971 Customer

    Freeze as ever you're a star, thanks so much. Sometimes it's too easy to over-complicate things.
  4. jason1971 Customer

    Freeze just a quick question.....

    I have setup a mobile template folder and added the relevant files. My question is as I am designing it, how do I view it. In other words how do I call the template ? it is located in mywebsite.com/templates/mobile
  5. freeze2 Super Moderator

    Not sure if there is an easy way to do this other than setting up a new installation either locally or on a subdomain for development purposes. You could setup the development site with a copy of your current database to keep categories etc. in tact.
  6. Mike-N-Tosh Owner

    http://mywebsite.com/index.php?template=templatename
    Once a user visits your site, a cookie is installed and the template name is one of the things stored. Using the above url (replacing with the real website and the real templatename) will change the template name in the cookie, therefore using that template for that visitor. Use the same url replaceing the url with your normal template name to change back or deleting the cookie (using the browser preferences/properties or developer tools, you can also delete the cookie to restore normal use as well).
  7. jason1971 Customer

    Thank you both, I have it sorted

Share This Page