Forums de discussion

How to remove extra widgets from Applications.

Himanshu Sethi, modifié il y a 7 années.

How to remove extra widgets from Applications.

New Member Publications: 13 Date d'inscription: 06/05/16 Publications récentes
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, modifié il y a 7 années.

RE: How to remove extra widgets from Applications.

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
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, modifié il y a 7 années.

RE: How to remove extra widgets from Applications.

New Member Publications: 13 Date d'inscription: 06/05/16 Publications récentes
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, modifié il y a 7 années.

RE: How to remove extra widgets from Applications.

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
Can't be done in portal-ext.properties in either version.
Himanshu Sethi, modifié il y a 7 années.

RE: How to remove extra widgets from Applications.

New Member Publications: 13 Date d'inscription: 06/05/16 Publications récentes
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, modifié il y a 7 années.

RE: How to remove extra widgets from Applications.

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
Which version of Liferay are we talking about here?
Himanshu Sethi, modifié il y a 7 années.

RE: How to remove extra widgets from Applications.

New Member Publications: 13 Date d'inscription: 06/05/16 Publications récentes
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, modifié il y a 7 années.

RE: How to remove extra widgets from Applications.

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
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.