Fórum

How to hide the portlet in other Portal instance?

Michel Falkner, modificado 9 Anos atrás.

How to hide the portlet in other Portal instance?

Junior Member Postagens: 54 Data de Entrada: 10/08/14 Postagens Recentes
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, modificado 9 Anos atrás.

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

Liferay Master Postagens: 875 Data de Entrada: 07/01/11 Postagens Recentes
Login to Portal Instance Go to Control Panel - > Plugins Configuration and disable portlet you don't want to see.
Michel Falkner, modificado 9 Anos atrás.

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

Junior Member Postagens: 54 Data de Entrada: 10/08/14 Postagens Recentes
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, modificado 9 Anos atrás.

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

Liferay Legend Postagens: 14914 Data de Entrada: 02/09/06 Postagens Recentes
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, modificado 9 Anos atrás.

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

Liferay Master Postagens: 875 Data de Entrada: 07/01/11 Postagens Recentes
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, modificado 8 Anos atrás.

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

Regular Member Postagens: 174 Data de Entrada: 22/06/12 Postagens Recentes
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, modificado 5 Anos atrás.

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

New Member Postagens: 14 Data de Entrada: 17/01/12 Postagens Recentes
I cannot find app manager under the control panel of the new created portal instance.
​​​​​​​
My liferay version is 6.2.5