[Yanel-dev] Redirect resource is also considering devices
Michael Wechner
michael.wechner at wyona.com
Sat Apr 7 15:54:27 CEST 2012
Hi
I have slighty enhanced the redirect resource such that it also can
differentiate between mobile and non-mobile devices, e.g.
src/realms/from-scratch-realm-template/res-configs/.yanel-rc
or rather
<yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
<yanel:rti name="redirect"
namespace="http://www.wyona.org/yanel/resource/1.0.1"/>
<yanel:property name="href" value="en/index.html"/>
<yanel:custom-config
xmlns:rd="http://www.wyona.org/yanel/resource/redirect-resource/1.0">
<rd:language code="de" device="web.xml:mobile-devices"
href="mobile/de/index.html"/>
<rd:language code="de" href="de/index.html"/>
</yanel:custom-config>
</yanel:resource-config>
Please note that you have to increase the namespace version
http://www.wyona.org/yanel/resource/1.0.1
to use this enhanced functionality.
Thanks
Michael
More information about the Yanel-development
mailing list