Foren

Removing liferay core portlet

thumbnail
Banafshe Bamdad, geändert vor 8 Jahren.

Removing liferay core portlet

Junior Member Beiträge: 71 Beitrittsdatum: 06.11.07 Neueste Beiträge
Hello everyone,

I know we can active/inactive liferay core portles from Control Panel, but I must remove a core portlet completely from liferay, also I know this is not good with respect to upgradation, could you please explain me "removing a core portlet" is a good decision or not? My boss force me to do that. I want a strong convincing explanation.

Thanks in advanced,
Banafshe
thumbnail
Olaf Kock, geändert vor 8 Jahren.

RE: Removing liferay core portlet (Antwort)

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
The core argument will be maintainability: The more you modify Liferay's core, the harder it will be to update to the next version. Also, some of Liferay's portlets use resources (jsps) of other portlets.

My preferred way to deactivate portlets would be through permissions. Secondary option is to write an ext plugin that sets the <active> flag in liferay-portlet.xml for the portlets that you don't want to have. From the DTD:

<!--
Set the active value to true if the portlet is active and available to users.
If set to false, the portlet will not be active or available to users. The
default value is true.

This value can be changed at runtime via the Admin portlet.
-->
<!--ELEMENT active (#PCDATA)-->


Everything that makes upgrades (even minor ones) hard (think: Security patches) should be avoided.
thumbnail
Banafshe Bamdad, geändert vor 8 Jahren.

RE: Removing liferay core portlet

Junior Member Beiträge: 71 Beitrittsdatum: 06.11.07 Neueste Beiträge
Thank you very much for your response,