Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion mobile site strategy
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
klemens_u  
View profile  
 More options Sep 7 2010, 3:49 am
From: klemens_u <klem...@ull.at>
Date: Tue, 7 Sep 2010 00:49:03 -0700 (PDT)
Local: Tues, Sep 7 2010 3:49 am
Subject: Re: mobile site strategy
Hi,

it's basically really just a question of view.

Here's an old blog post about creating an iphone view:
http://www.symfony-project.org/blog/2008/06/09/how-to-create-an-optim...
Most of it is still valid and it works.

But there is one serious drawback: You have to provide a mobile
template for each action.
That's why we created a tiny patch (for our "ullright" platform) to
provide a fallback to normal templates in case there is no special
mobile one.

Here are the required parts:

Mobile detection: This belongs into your project configuration:
http://trac.ullright.org/browser/trunk/plugins/ullCorePlugin/config/u...

Symfony patch enabling fallback to html templates: (Patches
sfView.class.php)
http://trac.ullright.org/browser/trunk/plugins/ullCorePlugin/patch/sf...

Finally provide a mobile template (or not):
Normaly you would put your template in apps/frontend/modules/myModule/
templates/myActionSuccess.php
Now you can provide a mobile template by creating the following file:
apps/frontend/modules/myModule/templates/myActionSuccess.mobile.php

This also works for layouts, partials and components. Example: apps/
frontend/modules/myModule/templates/_head.mobile.php

Have a nice day,

Klemens

On 6 Sep., 00:29, Alexandre Salomé <alexandre.sal...@gmail.com> wrote:

> It's just a question of view.

> You should create dedicated routes with a sf_format "mini"

> 2010/9/2 Dennis <gear...@sbcglobal.net>

> > Rather than go the plugin route, why not use either a '.mobi' tld, or
> > '.movi' subdomain, and symlinnk any directories that you need between
> > the two projects?

> > On Sep 1, 4:57 am, Benoit Montuelle <benoit.montue...@gmail.com>
> > wrote:
> > > I've done it by adding specific layout, templates and stylesheet to the
> > existing app.

> > > You can trigger events in your project configuration upon user agent to
> > change templates and specific configuration.

> > > The strategy to use another app depends wether your mobile app should
> > have the same functionnality as the 'classic' web app does, but it will be
> > easier if most code still shared.

> > > -----Original Message-----
> > > From: Kevin <kevinb...@gmail.com>
> > > Sent: mercredi 1 septembre 2010 12:51
> > > To: symfony users <symfony-users@googlegroups.com>
> > > Subject: [symfony-users] mobile site strategy

> > > I am wondering what others have done to create a mobile site for their
> > > symfony projects (when more than just a handheld stylesheet is
> > > required).

> > > What I am planning on doing is moving all my modules to a plugin and
> > > creating another app called 'mobile'.  I can then override any modules
> > > I need optimized for a mobile device.

> > > What strategies have you come up with?  Is there an agreed upon best
> > > practice?

> > > --
> > > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com

> > > You received this message because you are subscribed to the Google
> > > Groups "symfony users" group.
> > > To post to this group, send email to symfony-users@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > symfony-users+unsubscribe@googlegroups.com<symfony-users%2Bunsubscribe@goog legroups.com>
> > > For more options, visit this group athttp://
> > groups.google.com/group/symfony-users?hl=en

> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com

> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscribe@googlegroups.com<symfony-users%2Bunsubscribe@goog legroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

> --
> Alexandre Saloméhttp://alexandre-salome.fr


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.