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.

All other Modules /

Discuss all other Modules here.

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

SOLVED: Mobile Extension Shows Non-Mobile Theme (SS2.4.4)


Go to End


4 Posts   2134 Views

Avatar
LinseyM

Community Member, 99 Posts

23 January 2011 at 3:50am

Edited: 23/01/2011 4:07am

Hi there,

Really hoping someone can help me out here.

I think my problem might be similar to this post, but I didn't want to hijack it: http://silverstripe.org/all-other-modules/show/15463

I am using SS 2.4.4 and I have installed the mobile extension (V0.5); Am sure it is all installed properly. I've uploaded the theme to the correct folder and selected the mobile theme in the "mobile" tab etc.

However, mobile browsers are still showing the main theme, and not the mobile one. (Have selected "Mobile users see mobile theme, but no redirection occurs" as client does not want the mobile domain redirect)

I know the mobile browser is being picked up thought; If I set a mobile redirection to another domain (just yahoo for example) and choose "Mobile users are redirected to a mobile domain" then I will be redirected. As i said tho, client wants other option - no redirect.

Have tested on an iPhone 4 (Safari) and also installed the User Agent Changer in firefox to test on iPhone 3.0

The mobile theme isn't working on either of these at the moment.

Any help with this would be much appreciated.

Thanks,

Linsey

Avatar
LinseyM

Community Member, 99 Posts

23 January 2011 at 4:06am

Hi there,

Fixed this.

In my main site config I set

SSViewer::set_theme('xxx');

to the name of my theme (where theme name is xxx)

Then in the CMS main Site Config tab, I choose "Use default theme" in the dropdown.

In the CMS Config Mobile tab I then made sure that the name of my mobile theme was still selected (just to be sure!)

Saved it, and that seemed to fix everything.

L x

Avatar
CHD

Community Member, 219 Posts

14 June 2011 at 2:40am

Thanks for this Linsey,

although mine only worked when i actually deleted the entry for the "Mobile domain" URL.

Avatar
CHD

Community Member, 219 Posts

14 June 2011 at 2:57am

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/