Step 1:Specify where the portlet will appear in Control Panel
Open your liferay-portlet.xml. Add the below tags after <icon> tag
<control-panel-entry-category>apps</control-panel-entry-category>
<control-panel-entry-weight>0</control-panel-entry-weight>
Note 1: In the above code the line <control-panel-entry-category>apps</control-panel-entry-category> says where our portlet will appear in the Control Panel.
Note 2: The Tag <control-panel-entry-weight>
represents location vertically in the given category. According to our
code Book Portlet will appear at first position in apps category.
Step 2:Make the portlet hidden
In this step we put the portlet in hidden category so that it's not available anywhere other than Control Panel. This is done by modifying liferay-display.xml. For example.
<display>
<category name="category.hidden">
<portlet id="book-portlet" />
</category>
</display>
That's it. Now your portlet available in Control Panel.
No comments:
Post a Comment