How to add your portlet into control panel ?

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

  1.  
  2. <liferay-portlet-app>
  3.    <portlet>
  4.        <portlet-name>my-admin-portlet</portlet-name>
  5.              <control-panel-entry-category>
  6.                    portal
  7.              </control-panel-entry-category>
  8.              <control-panel-entry-weight>
  9.                   1.0
  10.              </control-panel-entry-weight>
  11.    </portlet>
  12. </liferay-portlet-app>
  13.  
You can leave a response, or trackback from your own site.

Leave a Reply

Security Code: