Jump to:

22972 Posts in 11596 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » iPhone/iPod plugin

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
Go to End
Author Topic: 2180 Views
  • tone77
    Avatar
    Community Member
    10 Posts

    iPhone/iPod plugin Link to this post

    Is anyone in the community or at silverstripe working on an iPhone plugin, so that an iPhone would be automatically detected and a streamlined version of the site displayed?

  • UncleCheese
    Avatar
    4085 Posts

    Re: iPhone/iPod plugin Link to this post

    Not sure it warrants a plugin. There are countless iphone sniffing scripts out there. All you have to do is redirect to iphone.mydomain.com, and set up a second homepage in the CMS for domain iphone.mydomain.com. Then just make new templates for all your pages. We do it for all of our clients.

  • tone77
    Avatar
    Community Member
    10 Posts

    Re: iPhone/iPod plugin Link to this post

    Can you provide an example url of what you have done?

    have you optimized the pages, so they are small and load fast over 3G?

  • Terminator4
    Avatar
    Community Member
    81 Posts

    Re: iPhone/iPod plugin Link to this post

    It sounds as though you want a mini version of a site to be displayed. I doubt there is going to an actually plugin that will just do the job since SS sites can be extremely extensive. The way in which to detect the header information of the request. Thereafter, be it an iPhone or another other phone (browser) PHP code would be used to perform this detection. Thereafter, a specific CSS file could be included or a content page displayed which would be in accordance to the request that has been modified for mobiles.

    Some mobile detectors can be found at:
    - http://www.russellbeattie.com/blog/mobile-browser-detection-in-php
    - http://mobiforge.com/developing/story/lightweight-device-detection-php

  • tone77
    Avatar
    Community Member
    10 Posts

    Re: iPhone/iPod plugin Link to this post

    Yup, I have to agree. Simply changing the layout.css file depending on the browser detected would be the simplest way to go, and make the site look, oh so pretty.

  • mottac
    Avatar
    Community Member
    3 Posts

    Re: iPhone/iPod plugin Link to this post

    Uncle,

    I'd love to see an example! Great idea to offer your clients.

  • robinp
    Avatar
    Community Member
    33 Posts

    Re: iPhone/iPod plugin Link to this post

    Hi UncleCheese,

    I not quite following what you mean by "make new templates for all your pages" in this case ?

    Do you make new controllers ? for the pages/model as well ?

    Could you post some example code ?

    Sorry for asking what might seem like a dumb question.

    Cheers

    Robin

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