You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mike Sickler <mi...@gmail.com> on 2011/05/09 14:02:14 UTC

Detecting mobile browsers and redirecting

I also posted this question to 
http://stackoverflow.com/questions/5849929/how-do-i-configure-cocoon-to-redirect-mobile-browsers-to-a-mobile-site
StackOverflow :

I have two Cocoon sites: ABC and ABC-mobile.

If the user is coming from a mobile browser, then I want them redirected to
ABC-mobile. How do I accomplish this?
-- 
View this message in context: http://old.nabble.com/Detecting-mobile-browsers-and-redirecting-tp31576154p31576154.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Detecting mobile browsers and redirecting

Posted by florent andré <fl...@4sengines.com>.
Hi,
May have a look to this : 
http://cocoon.apache.org/2.1/userdocs/browser-selector.html
++

On 05/09/2011 02:02 PM, Mike Sickler wrote:
>
> I also posted this question to
> http://stackoverflow.com/questions/5849929/how-do-i-configure-cocoon-to-redirect-mobile-browsers-to-a-mobile-site
> StackOverflow :
>
> I have two Cocoon sites: ABC and ABC-mobile.
>
> If the user is coming from a mobile browser, then I want them redirected to
> ABC-mobile. How do I accomplish this?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Detecting mobile browsers and redirecting

Posted by Andreas Hartmann <an...@apache.org>.
Am 09.05.11 14:02, schrieb Mike Sickler:
>
> I also posted this question to
> http://stackoverflow.com/questions/5849929/how-do-i-configure-cocoon-to-redirect-mobile-browsers-to-a-mobile-site
> StackOverflow :
>
> I have two Cocoon sites: ABC and ABC-mobile.
>
> If the user is coming from a mobile browser, then I want them redirected to
> ABC-mobile. How do I accomplish this?

http://wurfl.sourceforge.net/njava/

We used this in an application based on Cocoon 2.1. The redirect is 
determined using a custom Selector. You can use the code example from 
the website.

HTH,

-- Andreas



-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Detecting mobile browsers and redirecting

Posted by AliHotmail <ma...@hotmail.de>.
Hi,
DeviceCompass offers a Cocoon 2.2 Block to do this. You can choose not only the browser type but also any device criteria to redirect to your mobile page.
http://www.devicecompass.com/en/docs/compass-cocoon-block

Regards
Ali


Am 09.05.2011 um 14:02 schrieb Mike Sickler:

> 
> I also posted this question to 
> http://stackoverflow.com/questions/5849929/how-do-i-configure-cocoon-to-redirect-mobile-browsers-to-a-mobile-site
> StackOverflow :
> 
> I have two Cocoon sites: ABC and ABC-mobile.
> 
> If the user is coming from a mobile browser, then I want them redirected to
> ABC-mobile. How do I accomplish this?
> -- 
> View this message in context: http://old.nabble.com/Detecting-mobile-browsers-and-redirecting-tp31576154p31576154.html
> Sent from the Cocoon - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org