留言板

How to hide the portlet in other Portal instance?

Michel Falkner,修改在9 年前。

How to hide the portlet in other Portal instance?

Junior Member 帖子: 54 加入日期: 14-8-10 最近的帖子
Hi Liferay Team,

If i create a 2 portal instance like "wipro.com", "liferay.com".

My question i want hide my custome portlet in wipro portal instance.

Can you please share me some idea.

Regards
Michel
thumbnail
Jitendra Rajput,修改在9 年前。

RE: How to hide the portlet in other Portal instance?

Liferay Master 帖子: 875 加入日期: 11-1-7 最近的帖子
Login to Portal Instance Go to Control Panel - > Plugins Configuration and disable portlet you don't want to see.
Michel Falkner,修改在9 年前。

RE: How to hide the portlet in other Portal instance?

Junior Member 帖子: 54 加入日期: 14-8-10 最近的帖子
Thanks

How can i achieve through the programatically.

It means once i deploy the portlet it should not display in other portal instance.
thumbnail
David H Nebinger,修改在9 年前。

RE: How to hide the portlet in other Portal instance?

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
It's not really possible.

Plugins are not bound to instances, they are bound to Liferay. If you deploy a plugin, then naturally it is available to the portal, regardless how many virtual hosts you have.

If I had to support this, I would try to do so with roles/permissions; give a role/permission to wipro users and only show the portlet if they have the role/permission.
thumbnail
Jitendra Rajput,修改在9 年前。

RE: How to hide the portlet in other Portal instance?

Liferay Master 帖子: 875 加入日期: 11-1-7 最近的帖子
If you are using Liferay 6.1 then you can hook view.jsp of layout_configuration.jsp.

In this JSP liferay displays every category and portlet inside that category.

while (itr.hasNext()) {
PortletCategory curPortletCategory = (PortletCategory)itr.next();
// Here based on webid/companyid check for your portal instance
//Hide entire category or specific portlet for portal instance.



}
thumbnail
Nikhil Nishchal,修改在8 年前。

RE: How to hide the portlet in other Portal instance?

Regular Member 帖子: 177 加入日期: 12-6-22 最近的帖子
Hello,
You can deactivate portlet in specific instance by app manager.
from app manager under control panel you can deactivate in different instance in which you want to hide.
Bin Li,修改在5 年前。

RE: How to hide the portlet in other Portal instance?

New Member 帖子: 14 加入日期: 12-1-17 最近的帖子
I cannot find app manager under the control panel of the new created portal instance.
​​​​​​​
My liferay version is 6.2.5