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.

General Questions /

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

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

MOBILE SITE


Go to End


13 Posts   5756 Views

Avatar
musicfreak1995

Community Member, 28 Posts

5 September 2009 at 12:43pm

Edited: 05/09/2009 12:43pm

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

Avatar
zenmonkey

Community Member, 545 Posts

5 September 2009 at 1:04pm

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.

Avatar
Tama

Community Member, 138 Posts

29 September 2009 at 1:18pm

Edited: 29/09/2009 1:19pm

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.

Avatar
zenmonkey

Community Member, 545 Posts

30 September 2009 at 2:08am

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

Avatar
MikeOne

Community Member, 40 Posts

3 October 2009 at 4:42am

Subscribe... very interested in this..

Avatar
zenmonkey

Community Member, 545 Posts

7 October 2009 at 3:55am

Okay my Tutorial is on ssbits

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

This should get you guys started

Avatar
dalesaurus

Community Member, 283 Posts

7 October 2009 at 8:00am

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

Avatar
MikeOne

Community Member, 40 Posts

7 October 2009 at 8:21am

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

I'll try implementing this coming week.

Go to Top