Carlos Vela a écrit :
> 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.

I really cannot see how to use that info to guess the browser is running on a
small screen device (except for the nokia stuff but I guess using that hint to
serve light xhtml pages would be too hackish).

I guess you should first google a bit to study what standards are used by major
mobile-aware website to devise the best compliant strategy (I have next to no
clue on that topic).

> 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)

I think it would be quite straight forward to code a HttpHeaderNegociator by
taking the default Cookie based negociatior as an example. Then you would have
to register it to the relevant extension point as part of you nuxeo plugin.

-- 
Olivier


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

Reply via email to