Fórum

How to remove extra widgets from Applications.

Himanshu Sethi, modificado 7 Anos atrás.

How to remove extra widgets from Applications.

New Member Postagens: 13 Data de Entrada: 06/05/16 Postagens Recentes
Hi

For my project purpose I want to remove extra widgets from the Applications like Amazon Rankings,Shopping.I guess in portal-ext.properties we have to add some property.

Thanks for Help.
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: How to remove extra widgets from Applications.

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
In LR 6 and earlier, these are core portlets that cannot be removed. You might be able to hide them, but they cannot be removed.

Under LR 7, these items are supposed to be OSGi modules that could be unregistered (and therefore removed). I know I've seen it done with polls, for example, but haven't tried with these others that you're looking for.
Himanshu Sethi, modificado 7 Anos atrás.

RE: How to remove extra widgets from Applications.

New Member Postagens: 13 Data de Entrada: 06/05/16 Postagens Recentes
David H Nebinger:
In LR 6 and earlier, these are core portlets that cannot be removed. You might be able to hide them, but they cannot be removed.

Under LR 7, these items are supposed to be OSGi modules that could be unregistered (and therefore removed). I know I've seen it done with polls, for example, but haven't tried with these others that you're looking for.



Thanks for the information,can you explain in detail using commands which are required to be written in portal-ext.properties for hiding or removal whichever is possible.

Thanks in Advance.
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: How to remove extra widgets from Applications.

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Can't be done in portal-ext.properties in either version.
Himanshu Sethi, modificado 7 Anos atrás.

RE: How to remove extra widgets from Applications.

New Member Postagens: 13 Data de Entrada: 06/05/16 Postagens Recentes
David H Nebinger:
Can't be done in portal-ext.properties in either version.



Okay so what is the solution to this problem?

Thanks in Advance.
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: How to remove extra widgets from Applications.

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Which version of Liferay are we talking about here?
Himanshu Sethi, modificado 7 Anos atrás.

RE: How to remove extra widgets from Applications.

New Member Postagens: 13 Data de Entrada: 06/05/16 Postagens Recentes
Hi

I am using Liferay v6.2.

I have removed the portlets from liferay-portlet.xml and portlet-custom.xml.Now the unused portlets are not shown in Applications.

Thanks
thumbnail
David H Nebinger, modificado 7 Anos atrás.

RE: How to remove extra widgets from Applications.

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
So the typical way to do this is to change the liferay-display.xml file to put the portlets under the "category.hidden" category. That keeps all relevant code, definition, etc. in place but still removes it from the application menu.

Your solution will work but may present a challenge for you with respect to future upgrades.