Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

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.

Template Questions /

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

Mobile template on desktop


Go to End


2 Posts   1243 Views

Avatar
plastelinko

Community Member, 1 Post

26 March 2015 at 8:34am

Edited: 26/03/2015 9:54am

Hello,
I have a problem with displaying pages one of the languages. When in a web browser requires the display of pages on defalt language, response show mobile version of the site. When on URL is added suffix of the English language ("/ en"), the site is displayed as a normal desktop template. What can be a problem?
When I turn off template for mobile access to website, than everything work without problem!

Thank you so much!

Avatar
wmk

Community Member, 87 Posts

27 March 2015 at 8:55pm

Hi plastelinko,

what version of Silverstripe do you use? And how do you decide which template to choose? Which module is doing translations?

Seems there are some incompatibilities.

Those use-a-mobile-template-on-mobile-devices switches are very outdated, you should have a look at responsive webdesign (rwd), using css media queries to alter the look and feel of your page depending on the e.g. screen width. This way you always serve the same template and the browser decides how to display your wonderful page.

Feel free to post more informations of your site (version, modules, demo code, demo site...), maybe we can help you finding an ad hoc fix.

Cheers,

wmk