Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » SOLVED: Mobile Extension Shows Non-Mobile Theme (SS2.4.4)

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1580 Views
  • LinseyM
    Avatar
    Community Member
    99 Posts

    SOLVED: Mobile Extension Shows Non-Mobile Theme (SS2.4.4) Link to this post

    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

  • LinseyM
    Avatar
    Community Member
    99 Posts

    Re: SOLVED: Mobile Extension Shows Non-Mobile Theme (SS2.4.4) Link to this post

    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

  • CHD
    Avatar
    Community Member
    218 Posts

    Re: SOLVED: Mobile Extension Shows Non-Mobile Theme (SS2.4.4) Link to this post

    Thanks for this Linsey,

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

  • CHD
    Avatar
    Community Member
    218 Posts

    Re: SOLVED: Mobile Extension Shows Non-Mobile Theme (SS2.4.4) 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/

    1580 Views
Page: 1
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.