Foros de discusión

How to hide the portlet in other Portal instance?

Michel Falkner, modificado hace 9 años.

How to hide the portlet in other Portal instance?

Junior Member Mensajes: 54 Fecha de incorporación: 10/08/14 Mensajes recientes
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 hace 9 años.

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

Liferay Master Mensajes: 875 Fecha de incorporación: 7/01/11 Mensajes recientes
Login to Portal Instance Go to Control Panel - > Plugins Configuration and disable portlet you don't want to see.
Michel Falkner, modificado hace 9 años.

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

Junior Member Mensajes: 54 Fecha de incorporación: 10/08/14 Mensajes recientes
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 hace 9 años.

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

Liferay Legend Mensajes: 14915 Fecha de incorporación: 2/09/06 Mensajes recientes
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 hace 9 años.

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

Liferay Master Mensajes: 875 Fecha de incorporación: 7/01/11 Mensajes recientes
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 hace 8 años.

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

Regular Member Mensajes: 176 Fecha de incorporación: 22/06/12 Mensajes recientes
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.

Archivos adjuntos:

Bin Li, modificado hace 5 años.

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

New Member Mensajes: 14 Fecha de incorporación: 17/01/12 Mensajes recientes
I cannot find app manager under the control panel of the new created portal instance.
​​​​​​​
My liferay version is 6.2.5

Archivos adjuntos: