|
|
Rank: Enthusiast
Joined: 9/29/2006 Posts: 13 Location: Zurich
|
Is it possible to redirect pages based on different clients?
I know that the .net - framework offers those functionalities (Request.Browser["IsMobileDevice"] == "true").
But is it possible to integrate it in umbraco?
We do not learn by doing, but by thinking about what we are doing.
|
|
Rank: Enthusiast
Joined: 9/29/2006 Posts: 13 Location: Zurich
|
Tobias Morf wrote: Is it possible to redirect pages based on different clients?
I know that the .net - framework offers those functionalities (Request.Browser["IsMobileDevice"] == "true" ).
But is it possible to integrate it in umbraco?
We do not learn by doing, but by thinking about what we are doing.
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,410 Location: KY, USA
|
Would it be enough to use a different stylesheet for the mobile users, such as below, or do you need to have entirely different content for mobile users? Code: <link rel="stylesheet" type="text/css" media="screen" href="screen.css" /> <link rel="stylesheet" type="text/css" media="print" href="print.css" /> <link rel="stylesheet" type="text/css" media="handheld" href="mobile.css" />
cheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,069 Location: Charleston, West Virginia, United States
|
It would be extremely cool if the template selector could be set to select a template based upon browser/browser type. You may be able to do this through a User Control and RenderTemplate. Let me know what you do here. This sounds like a great idea. Case
• 2007/2008 MVP • 2008/2009 MVP • Core Developer • Certified Professional Level I & II •
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,410 Location: KY, USA
|
Here's something I worked up a while back... BrowserDetection 1.0. which is available at http://www.percipientstudios.com/downloads/umbraco/BrowserDetection1.0.zipIt comes with full documentation and an ASP.NET dll that lets you determine the visitor's browser and capabilities from within an Umbraco Macro. You can then return specific information for that user/browser. I built BrowserDetection 1.0 and then found another solution to my problem and never used it in production. Give it a try and see if it might be helpful. Casey, would BrowserDetection 1.0 work with your redirection package? http://forum.umbraco.org/misc/creating-a-server-transfer-or-redirect-to-another-page-through-umbracocheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,069 Location: Charleston, West Virginia, United States
|
Doug, You are the man!!! Using redirection may be a way of handling it, but the only problem I see here is that you end up with multiple trees for each browser, which would be a pain. Having alternate templates would be a simpler method. The easiest method is using CSS and XHTML, but the page could still be too bloated. I will look at your example and see if there is a way in which we could implement RenderTemplate into it. (I think I will need to create a template selector data type for this..) Cool deal. Case
• 2007/2008 MVP • 2008/2009 MVP • Core Developer • Certified Professional Level I & II •
|
|
|
Guest |