Actually, commenting out
return $this->owner->redirect($config->FullSiteDomain);
seems to work fine.
Means people can still switch between both on either environment
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Actually, commenting out
return $this->owner->redirect($config->FullSiteDomain);
seems to work fine.
Means people can still switch between both on either environment
Just turn on option in Admin panel "Mobile users see mobile theme, but no redirection occurs"
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
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/