Creating Mobile Sites

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Creating Mobile Sites

ajwagner777
Hello,

I wanted to get some ideas on creating a mobile site for our university.  I have some ideas about how best to accomplish this through purely CSS means, but I think that the best path for us is to explore using some server-side scripting in order to redirect to another host.  So my question is, is there a way to set dotCMS to redirect requests made to one host (say www.uthouston.edu<http://www.uthouston.edu>) from a mobile browser to m.uthouston.edu, where I can provide a more useful experience for users?  Would this be better accomplished on the tomcat level, or should I stick to pure CSS methods?  Any ideas would be greatly appreciated!

Aaron Wagner
Web Developer II, University Web Communication
The University of Texas Health Science Center at Houston
Office of Institutional Advancement
7000 Fannin, Suite 1540-2
University Center Tower
Phone: 713-500-3459
Fax: 713-500-3052
Email: [hidden email]<mailto:[hidden email]>
Web: www.uthouston.edu<http://www.uthouston.edu/>
CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this e-mail in error, please notify the sender and delete this e-mail from your system.

Reply | Threaded
Open this post in threaded view
|

Re: Creating Mobile Sites

Jason Tesser-2
If you want to redirect to another host which of course has its own share of
maintenance (needing to maintain a second site etc..) dotCMS helps here as
content, templates, containers can all be resued etc...

Thanks,
Jason Tesser
dotCMS Lead Development Manager
1-305-858-1422


On Tue, Dec 29, 2009 at 5:44 PM, Wagner, Aaron <[hidden email]>wrote:

>
>
>  Hello,
>
>
>
> I wanted to get some ideas on creating a mobile site for our university.  I
> have some ideas about how best to accomplish this through purely CSS means,
> but I think that the best path for us is to explore using some server-side
> scripting in order to redirect to another host.  So my question is, is there
> a way to set dotCMS to redirect requests made to one host (say
> www.uthouston.edu) from a mobile browser to m.uthouston.edu, where I can
> provide a more useful experience for users?  Would this be better
> accomplished on the tomcat level, or should I stick to pure CSS methods?
> Any ideas would be greatly appreciated!
>
>
>
> *Aaron Wagner
> *Web Developer II, University Web Communication
> The University of Texas Health Science Center at Houston
> Office of Institutional Advancement
> 7000 Fannin, Suite 1540-2
> University Center Tower
> Phone: 713-500-3459
> Fax: 713-500-3052
> Email: [hidden email]
> Web: www.uthouston.edu
>
> CONFIDENTIALITY: This e-mail (including any attachments) may contain
> confidential, proprietary and privileged information, and unauthorized
> disclosure or use is prohibited. If you received this e-mail in error,
> please notify the sender and delete this e-mail from your system.
>
>
>
>  
>
Reply | Threaded
Open this post in threaded view
|

Re: Creating Mobile Sites

wezell-2
Administrator
In reply to this post by ajwagner777
Aaron:

You can use velocity to do what you are looking for. In the top of your
template, take a look at the request's user agent header that is sent by all
browsers, something like $request.getHeader("User-Agent").  If that matches
or contains known mobile agents - iphone,  safari mobile, then do a
$response.sendRedirect("http://my.mobile.site")

Hope that helps,


Will

----
Will Ezell
www.dotcms.org
phone: 305.858.1422 ext. 286
direct: 978.296.4239
skype: wezell1




On Tue, Dec 29, 2009 at 5:44 PM, Wagner, Aaron <[hidden email]>wrote:

>
>
>  Hello,
>
>
>
> I wanted to get some ideas on creating a mobile site for our university.  I
> have some ideas about how best to accomplish this through purely CSS means,
> but I think that the best path for us is to explore using some server-side
> scripting in order to redirect to another host.  So my question is, is there
> a way to set dotCMS to redirect requests made to one host (say
> www.uthouston.edu) from a mobile browser to m.uthouston.edu, where I can
> provide a more useful experience for users?  Would this be better
> accomplished on the tomcat level, or should I stick to pure CSS methods?
> Any ideas would be greatly appreciated!
>
>
>
> *Aaron Wagner
> *Web Developer II, University Web Communication
> The University of Texas Health Science Center at Houston
> Office of Institutional Advancement
> 7000 Fannin, Suite 1540-2
> University Center Tower
> Phone: 713-500-3459
> Fax: 713-500-3052
> Email: [hidden email]
> Web: www.uthouston.edu
>
> CONFIDENTIALITY: This e-mail (including any attachments) may contain
> confidential, proprietary and privileged information, and unauthorized
> disclosure or use is prohibited. If you received this e-mail in error,
> please notify the sender and delete this e-mail from your system.
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Creating Mobile Sites

Jason Tesser-2
In reply to this post by Jason Tesser-2
sorry wasn't done typing yet and the message sent

Anyways you could use a plugin with a filter that can handle this. I would
try to avoid client side programming.  The CSS is possible.  Also another
idea is that you can have a template which can swap its code based on the
agent.  Get the agent from the request using velocity within the template
and then do a

#if($mobile)
#parse(myMobileContainer)
##You can even handle the redirect here using the response object
#else
my normal template code.
#end

Thanks,
Jason Tesser
dotCMS Lead Development Manager
1-305-858-1422


On Wed, Dec 30, 2009 at 7:51 AM, Jason Tesser <[hidden email]> wrote:

> If you want to redirect to another host which of course has its own share
> of maintenance (needing to maintain a second site etc..) dotCMS helps here
> as content, templates, containers can all be resued etc...
>
> Thanks,
> Jason Tesser
> dotCMS Lead Development Manager
> 1-305-858-1422
>
>
>
> On Tue, Dec 29, 2009 at 5:44 PM, Wagner, Aaron <[hidden email]>wrote:
>
>>
>>
>>  Hello,
>>
>>
>>
>> I wanted to get some ideas on creating a mobile site for our university.
>> I have some ideas about how best to accomplish this through purely CSS
>> means, but I think that the best path for us is to explore using some
>> server-side scripting in order to redirect to another host.  So my question
>> is, is there a way to set dotCMS to redirect requests made to one host (say
>> www.uthouston.edu) from a mobile browser to m.uthouston.edu, where I can
>> provide a more useful experience for users?  Would this be better
>> accomplished on the tomcat level, or should I stick to pure CSS methods?
>> Any ideas would be greatly appreciated!
>>
>>
>>
>> *Aaron Wagner
>> *Web Developer II, University Web Communication
>> The University of Texas Health Science Center at Houston
>> Office of Institutional Advancement
>> 7000 Fannin, Suite 1540-2
>> University Center Tower
>> Phone: 713-500-3459
>> Fax: 713-500-3052
>> Email: [hidden email]
>> Web: www.uthouston.edu
>>
>> CONFIDENTIALITY: This e-mail (including any attachments) may contain
>> confidential, proprietary and privileged information, and unauthorized
>> disclosure or use is prohibited. If you received this e-mail in error,
>> please notify the sender and delete this e-mail from your system.
>>
>>
>>
>>  
>>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: Creating Mobile Sites

Paul McCall
AFAIK, properly identifying mobile platforms with a high level of accuracy is not an easy feat.  

I know there are a few projects out there aiming to do this well - the one I looked into a while ago was the Wireless Universal Resource File or WURFL.  Open Source and free for commercial use, and they have Java and PHP API's that allow you to query their database file of wireless devices.  Sounded promising to me, but I didn't play with it at all, so I can't really say.  Could be better projects out there doing similar things.

http://wurfl.sourceforge.net/

Happy New Year everybody!


________________________________________
From: [hidden email] [[hidden email]] On Behalf Of Jason Tesser [[hidden email]]
Sent: Wednesday, December 30, 2009 7:54 AM
To: [hidden email]
Subject: Re: [dotcms] Creating Mobile Sites

sorry wasn't done typing yet and the message sent

Anyways you could use a plugin with a filter that can handle this. I would try to avoid client side programming.  The CSS is possible.  Also another idea is that you can have a template which can swap its code based on the agent.  Get the agent from the request using velocity within the template and then do a

#if($mobile)
#parse(myMobileContainer)
##You can even handle the redirect here using the response object
#else
my normal template code.
#end

Thanks,
Jason Tesser
dotCMS Lead Development Manager
1-305-858-1422


On Wed, Dec 30, 2009 at 7:51 AM, Jason Tesser <[hidden email]<mailto:[hidden email]>> wrote:
If you want to redirect to another host which of course has its own share of maintenance (needing to maintain a second site etc..) dotCMS helps here as content, templates, containers can all be resued etc...

Thanks,
Jason Tesser
dotCMS Lead Development Manager
1-305-858-1422



On Tue, Dec 29, 2009 at 5:44 PM, Wagner, Aaron <[hidden email]<mailto:[hidden email]>> wrote:

Hello,

I wanted to get some ideas on creating a mobile site for our university.  I have some ideas about how best to accomplish this through purely CSS means, but I think that the best path for us is to explore using some server-side scripting in order to redirect to another host.  So my question is, is there a way to set dotCMS to redirect requests made to one host (say www.uthouston.edu<http://www.uthouston.edu>) from a mobile browser to m.uthouston.edu<http://m.uthouston.edu>, where I can provide a more useful experience for users?  Would this be better accomplished on the tomcat level, or should I stick to pure CSS methods?  Any ideas would be greatly appreciated!

Aaron Wagner
Web Developer II, University Web Communication
The University of Texas Health Science Center at Houston
Office of Institutional Advancement
7000 Fannin, Suite 1540-2
University Center Tower
Phone: 713-500-3459
Fax: 713-500-3052
Email: [hidden email]<mailto:[hidden email]>
Web: www.uthouston.edu<http://www.uthouston.edu/>
CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this e-mail in error, please notify the sender and delete this e-mail from your system.







------------------------------------

Need Help?  See:

http://www.dotcms.org/support 

for open source support options.Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/dotcms/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/dotcms/join
    (Yahoo! ID required)

<*> To change settings via email:
    [hidden email]
    [hidden email]

<*> To unsubscribe from this group, send an email to:
    [hidden email]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/