Friday, 14 September 2012


How to add a portlet to the Liferay Control Panel


If you want your portlet to be available in the liferay control panel, just add the following in liferay-portlet.xml file:


<control-panel-entry-category>portal</control-panel-entry-category>
<control-panel-entry-weight>2</control-panel-entry-weight>
<instanceable>false</instanceable>


control-panel-entry-category defines where the portal will be shown, for example "portal" or "server".

control-panel-entry-weight defines the position of the portlet in the category you defined above.

control-panel-entry-class is optional and is used to define rights (who can see the portlet and who doesn´t).

No comments:

Post a Comment