Fórumok

Device detection in Liferay portal for two different sites

shruti pandey, módosítva 9 év-val korábban

Device detection in Liferay portal for two different sites

New Member Bejegyzések: 14 Csatlakozás dátuma: 2013.09.16. Legújabb bejegyzések
Hi,

I have 2 portal sites site A & site B (6.2 EE), one is developed for desktop and other is for mobile devices.

Now can anyone tell me what are the steps(settings) need to be done in liferay for device detection means if user's device is desktop then he will be
redirected to 'site A' url, and if user's device is mobile then he will be redirected to 'site B' url.

I have also got one blog DeviceDetection
where they are using WURFL framework. So is that WURFL plugin is available for 6.2 EE edition?
thumbnail
bhargavi m, módosítva 9 év-val korábban

RE: Device detection in Liferay portal for two different sites

Junior Member Bejegyzések: 47 Csatlakozás dátuma: 2012.04.05. Legújabb bejegyzések
we dont need to create to sites for two different devices
Only one html is sufficient but we need to use 2 different css for them by using @media Queries.

go through the fallowing links which might help you out
http://cssmediaqueries.com/
http://www.w3schools.com/css/css_mediatypes.asp
http://www.w3.org/TR/css3-mediaqueries/
shruti pandey, módosítva 9 év-val korábban

RE: Device detection in Liferay portal for two different sites

New Member Bejegyzések: 14 Csatlakozás dátuma: 2013.09.16. Legújabb bejegyzések
Hey bhargavi m thanks for a prompt reply.

We are using 6.2 EE edition with bootstrap 2.3.

But due to some compatibility issue for some devices, we have created 2 different sites.

So in that case what we can do ?
thumbnail
Vipin Bardia, módosítva 9 év-val korábban

RE: Device detection in Liferay portal for two different sites

Regular Member Bejegyzések: 162 Csatlakozás dátuma: 2011.02.28. Legújabb bejegyzések
Hi Shruti,

Liferay provides a plugin for this which is already included in Liferay 6.2 https://www.liferay.com/marketplace/-/mp/application/35419014
siddhant jain, módosítva 9 év-val korábban

RE: Device detection in Liferay portal for two different sites (Válasz)

Junior Member Bejegyzések: 69 Csatlakozás dátuma: 2013.03.19. Legújabb bejegyzések
Hi Shruti,
you can use device recognition provider app by downloading it from marketplace. But, by doing so you will be restricted to the options provided in that app.
alternatively, you can do the detection by your own. see this link..

so you can explore all the WURFL capabilities.

thanks
Siddhant