Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » mobile: using the wrong theme?

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 2027 Views
  • adesweb
    Avatar
    Community Member
    39 Posts

    Re: mobile: using the wrong theme? Link to this post

    Actually, commenting out

    return $this->owner->redirect($config->FullSiteDomain);

    seems to work fine.

    Means people can still switch between both on either environment

  • Tonyair
    Avatar
    Community Member
    81 Posts

    Re: mobile: using the wrong theme? Link to this post

    Just turn on option in Admin panel "Mobile users see mobile theme, but no redirection occurs"

  • LisaB
    Avatar
    Community Member
    28 Posts

    Re: mobile: using the wrong theme? Link to this post

    Hi All, firstly thanks for all the work and amendments to the mobile module. It will be a really useful addition to our site. However I am a Silverstripe newby and although I read as much as I can in the docs and forums I sometimes can't find or extract the info I'm looking for, so I'm afraid I have a silly question:

    Could someone clarify the option mentioned by the option Tonyair mentions - "Mobile users see mobile theme, but no redirection occurs"? It's not very clear to me how it should work from the way it's worded so I'm not sure if my installation is working right.

    Does it mean a separate mobile subdomain that you only see if you browse to that url directly so if I go to m.mysite.com I get the mobile theme regardless of whether I'm on a mobile or not and if I go to mysite.com I get the full site regardless?

    Or does it mean everyone visits the same full site on the same domain and it is rendered with the mobile template or with the full site template according to what device is detected? I think I'd prefer the second option given a choice, (albeit with a link to switch to the alternative theme manually incase you have a very capable mobile or want to view the mobile theme on your desktop for development perhaps) - if this isn't how it works is there a way to achieve this?

    Thanks for any help or advice

  • CHD
    Avatar
    Community Member
    217 Posts

    Re: mobile: using the wrong theme? Link to this post

    I've also written a little tutorial for anybody needing help with module:
    http://www.clickheredigital.co.uk/blog/creating-a-mobile-site-with-silverstripe/

    2027 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.