Hi Paul, There's a not very known API that could help you achieve that : $xcontext. setLinksQueryString ; which propagates some query string params to all subsequent requests. So you could have skin=someskin pushed into it. But that might not be what you want (because of URL aesthetics for example). There might be a better way, I think Ludovic is doing something similar in the mobile skin, that could be a lead. Hope this helps, Jérôme Le 27/09/13 13:17, Paul Libbrecht a écrit :
Dear developers,
let me try to re-explain because obviously I don't find support to implement this.
I want the first hit of an xwiki request to decide which skin to take and keep that skin in all subsequent requests. The decision should mostly depend on the browser.
So the questions: - where is the logic that decides to choose a skin or another?
thanks in advance.
paul
Le 13 sept. 2013 à 18:33, Paul Libbrecht a écrit :
Ping?? Le 9 sept. 2013 à 23:01, Paul Libbrecht a écrit :
Hello fellow developers,
what is the best practice to decide on a skin in the session and not carry it along with the URLs? We are building a mobile UI and it should have more limited functionalities so that the same pages should eb visited by the same users with different skins depending if the device is a mobile or not.
thanks for hints.
Paul
devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs