Foren

How to remove extra widgets from Applications.

Himanshu Sethi, geändert vor 7 Jahren.

How to remove extra widgets from Applications.

New Member Beiträge: 13 Beitrittsdatum: 06.05.16 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: How to remove extra widgets from Applications.

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: How to remove extra widgets from Applications.

New Member Beiträge: 13 Beitrittsdatum: 06.05.16 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: How to remove extra widgets from Applications.

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
Can't be done in portal-ext.properties in either version.
Himanshu Sethi, geändert vor 7 Jahren.

RE: How to remove extra widgets from Applications.

New Member Beiträge: 13 Beitrittsdatum: 06.05.16 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: How to remove extra widgets from Applications.

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
Which version of Liferay are we talking about here?
Himanshu Sethi, geändert vor 7 Jahren.

RE: How to remove extra widgets from Applications.

New Member Beiträge: 13 Beitrittsdatum: 06.05.16 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: How to remove extra widgets from Applications.

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
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.