Mobile Devices uses HTTP headers like:
-Content-Type: application/xhtml+xml
-User-Agent:Mozilla/5.0
-Accept:application/xhtml+xml,text/css,text/vnd.nokia.rs-tgd,
*/*,text/x-hdml,image/mng,image/x-mng,video/mng,video/x-mng,image/bmp

More insteresting for my purposes are Content-Type and Accept.

Media attribute would depend on browser, and I would like to try HTTP
headers way first.

So, can it be done with negotiation engines? or has to be harcoded? (where
exactly in last case)

Thanks for your good and quick response.
----- Original Message ----- From: "Olivier Grisel" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, January 09, 2008 9:18 PM
Subject: [Ecm] Re: Diferent Theme for diferent client


Carlos_Informatica La Reina a écrit :
Hi all!

I want Nuxeo uses a theme for PC and other theme for Mobile Devices.

It must be computed with "negotiation". But not found documentation. It
seems to be around
org.nuxeo.theme/nuxeo-theme-jsf/src/main/java/org/nuxeo/theme/jsf/negotiation
and don't know what to do.

A second target: Can I select a default theme in a diferent way that
changing in theme-contrib.xml?

Any help?

Currently implemented negociation engines either used cookies, query parameters (e.g. http://my_nuxeo_url?theme=theme_id/page_id ), JSF view ids or the placeful service and hence are probably useless to discriminate between a mobile browser
and a full blown browser.

Do you know what info mobile browser give in their HTTP request to introduce them selves as such to the HTTP server? Maybe those browser would use a CSS
declared special "media" attribute in the page headers?

--
Olivier
-----------
Carlos Vela
Dpto I+D.
Yerbabuena Software.
[EMAIL PROTECTED]
http://www.yerbabuena.es
Tlf/Fax: 902 995 246


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to