Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Friends Team
how to add custom portlets in control panel in liferay
November 1, 2012 11:01 PM
Answer

Friends Team

Rank: Junior Member

Posts: 97

Join Date: September 3, 2012

Recent Posts

how to add custom portlets in control panel in liferay...............can u help me?
Jitendra Rajput
RE: how to add custom portlets in control panel in liferay
November 1, 2012 11:30 PM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 858

Join Date: January 7, 2011

Recent Posts

set below entries in your custom portlet's liferay-portlet.xml


<control-panel-entry-category>..</control-panel-entry-category>
<control-panel-entry-weight>..</control-panel-entry-weight>
<control-panel-entry-class>..</control-panel-entry-class>


<!--
Set the control-panel-entry-category value to "my", "content", "portal" or
"server" to make this portlet available in the Control Panel under that
category.
-->


<!--
Set the control-panel-entry-weight value to a double number to control the
position of the entry within its Control Panel category. Higher values mean
that the entry will appear lower in the Control Panel menu.
-->

<!--
The control-panel-entry-class value must be a class that implements
com.liferay.portlet.ControlPanelEntry and is called by the Control Panel to
decide whether the portlet should be shown to a specific user in a specific
context. The default value is set in portal.properties.

See:

http://docs.liferay.com/portal/6.0/javadocs/portal-service/com/liferay/portlet/ControlPanelEntry.html
-->
Muthukumar Thangavinayagam
RE: how to add custom portlets in control panel in liferay
November 1, 2012 11:39 PM
Answer

Muthukumar Thangavinayagam

Rank: New Member

Posts: 22

Join Date: December 16, 2010

Recent Posts

kumar g:
how to add custom portlets in control panel in liferay...............can u help me?


Hi Kumar,

please refer to the following URL:

http://www.liferay.com/community/forums/-/message_boards/message/16973909

Please add code under liferay-portlet.xml . under your custom portlet .
<control-panel-entry-category>portal</control-panel-entry-category>
<control-panel-entry-weight>1.0</control-panel-entry-weight>
<action-url-redirect>true</action-url-redirect>
<instanceable>false</instanceable>

Thanks,
Muthukumar Thangavinayagam.
Siby Mathew
RE: how to add custom portlets in control panel in liferay
November 2, 2012 3:43 AM
Answer

Siby Mathew

Rank: Expert

Posts: 265

Join Date: March 4, 2011

Recent Posts

If this is a control panel entry, then you can also consider to make the portlet hidden.
In liferay-display.xml, use :
1<category name="category.hidden">


Thanks,
Siby
Friends Team
RE: how to add custom portlets in control panel in liferay
November 7, 2012 9:33 PM
Answer

Friends Team

Rank: Junior Member

Posts: 97

Join Date: September 3, 2012

Recent Posts

thankq
Kumar M
RE: how to add custom portlets in control panel in liferay
May 14, 2013 5:38 AM
Answer

Kumar M

Rank: New Member

Posts: 16

Join Date: September 12, 2012

Recent Posts

thanks All,

It helped me lot. emoticon

Thanks and Regards
Vijay Kumar