Saturday, 8 November 2014

How to reuse (instanceable) my custom portlet more than one time in my page

Way to get more than one instance of a portlet

 Open liferay-portlet.xml file

 edit the file

<portlet>
<portlet-name>AddOnDirectory</portlet-name>
<icon>/icon.png</icon>

<instanceable>false</instanceable> --- modified this to 

<instanceable>true</instanceable>

 Then deploy to server. After that add your portlet instance as many you want on a page.

No comments: