留言板

Liferay 6.2 CE different meniu options for mobile devices

JIna :),修改在7 年前。

Liferay 6.2 CE different meniu options for mobile devices

New Member 帖子: 22 加入日期: 13-10-16 最近的帖子
Hi,
Some pages in our site are useful for PC users only and we want to hide them from menu. I noticed that Liferay 6.2. CE has those Mobile devices rules, but there is no default devices recognition library available. Is it just unfinished functionality or I should just download something from marketplace?
I would really appreciate any ideas how to hide/show (redirects are also ok) portal pages in navigation menu according device.

Thanks in advance
thumbnail
Juan Gonzalez,修改在7 年前。

RE: Liferay 6.2 CE different meniu options for mobile devices

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Jina.

You have two options:

1-Use Liferay's WURFL mobile device provider, existing here (take into account it's in 6.2.x branch):

https://github.com/liferay/liferay-plugins/tree/6.2.x/webs/wurfl-web

Just clone 6.2.x branch from liferay-plugins and deploy this plugin.

2- or find out some third- party available in Marketplace like this: https://web.liferay.com/marketplace/-/mp/application/70735109.
JIna :),修改在7 年前。

RE: Liferay 6.2 CE different meniu options for mobile devices

New Member 帖子: 22 加入日期: 13-10-16 最近的帖子
Hi Juan,
Tried second option. It detects mobile browser but if device is a tablet or mobile for it is the same.
As about first option I wasn't able to make build myself. Maybe there is prebuild stable version? We are using Liferay 6.2 CE last realese.

Thanks in advance
thumbnail
Juan Gonzalez,修改在7 年前。

RE: Liferay 6.2 CE different meniu options for mobile devices

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
JIna :):

As about first option I wasn't able to make build myself. Maybe there is prebuild stable version? We are using Liferay 6.2 CE last realese.
Thanks in advance


I searched through Marketplace but seems it isn't there.

You should configure a 6.2 Plugins SDK, and then in the plugin directory just run "ant deploy" as said here. Before this, you should configure the SDK to point to your local server:

https://dev.liferay.com/develop/tutorials/-/knowledge_base/6-2/deploying-plugins-to-a-local-portal-instance

In order to create a WAR to deploy remotely, try with
ant war
, and then your WAR file will be located in <PLUGINS_SDK>/dist