In liferay portlet development, you may encounter some situation where you want the portlet having special configuration and design for admin control. But do you make you portlet deploy in you control panel ?
The solution is quite simple and easy. Open the liferay-portlet.xml and add the 2 line after the < portlet-name >
example
-
-
<liferay-portlet-app>
-
<portlet>
-
<portlet-name>my-admin-portlet</portlet-name>
-
<control-panel-entry-category>
-
portal
-
</control-panel-entry-category>
-
<control-panel-entry-weight>
-
1.0
-
</control-panel-entry-weight>
-
</portlet>
-
</liferay-portlet-app>
-

Posted in 


