Forums de discussion

Hiding a control panel portlet - best practice?

Lior Hadaya, modifié il y a 11 années.

Hiding a control panel portlet - best practice?

Regular Member Publications: 138 Date d'inscription: 24/01/12 Publications récentes
Hello,
I am using Liferay EE 6.1.10 and I have a question.

There are a few control panel portlets I wish to hide (blogs, wiki for example).
I can do this by manually editing the liferay-portlet.xml in LIFERAY-HOME\tomcat-7.0.25\webapps\ROOT\WEB-INF folder, and deleting the control panel lines from the specific portlet's definition:

<control-panel-entry-category>portal</control-panel-entry-category>
<control-panel-entry-weight>X.0</control-panel-entry-weight>


Is there another way to do it that's considered best practice?

Thanks,
Lior
thumbnail
David H Nebinger, modifié il y a 11 années.

RE: Hiding a control panel portlet - best practice?

Liferay Legend Publications: 14916 Date d'inscription: 02/09/06 Publications récentes
No, although you should remember that some of those pieces can only be managed via their associated control panel...

Personally I'd just leave them alone. They are only visible to administrators, and you just train them to ignore them. Easiest path and requires no modification to the Liferay core.