Jump to:

22983 Posts in 11709 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » MOBILE SITE

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2
Go to End
Author Topic: 3428 Views
  • musicfreak1995
    Avatar
    Community Member
    28 Posts

    MOBILE SITE Link to this post

    How can I make my site go m or mobile for example
    m.bebo.com and make a mobile version bit

  • zenmonkey
    Avatar
    Community Member
    524 Posts

    Re: MOBILE SITE Link to this post

    You could use the Sub sites Module for the sub domain. I'm working on a system right now that will detect various classes of mobile browser and render them using different themes. Once I have the kinks worked out I plan on posting the recepes. Right now I'm trying to determine if using sub sites is actually the best way to go.

  • Tama
    Avatar
    Community Member
    119 Posts

    Re: MOBILE SITE Link to this post

    I'm also curious about this. I'm very new to Silverstripe and haven't started digging in the code yet.

    It should be possible to hard code a theme change to a mobile optimised theme if (for example) the first two characters of HTTP_HOST are "m." but I'm sure there's a more elegant way of doing it.

  • zenmonkey
    Avatar
    Community Member
    524 Posts

    Re: MOBILE SITE Link to this post

    I have a working version of this using some modified third party code, I plan on posting a tutorial/recipe once I figure out how best to deal with the Creative Commons License of the third party code

  • MikeOne
    Avatar
    Community Member
    40 Posts

    Re: MOBILE SITE Link to this post

    Subscribe... very interested in this..

  • zenmonkey
    Avatar
    Community Member
    524 Posts

    Re: MOBILE SITE Link to this post

    Okay my Tutorial is on ssbits

    http://www.ssbits.com/detecting-mobile-browsers-to-re-theme-your-site/

    This should get you guys started

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: MOBILE SITE Link to this post

    @zenmonkey That is a very nice solution. It get my gears turning on how to involve a subtheme with it to extend existing themes or parallelize development of new ones.

  • MikeOne
    Avatar
    Community Member
    40 Posts

    Re: MOBILE SITE Link to this post

    I agree - looks excellent and exactly what I needed - thanks!

    I'll try implementing this coming week.

    3428 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.