Forums de discussion

how to add portlet in control panel entry

simon tuffle, modifié il y a 11 années.

how to add portlet in control panel entry

Regular Member Publications: 150 Date d'inscription: 18/05/09 Publications récentes
hi Team,

I have a portlet (with portlet name portletA )for which i want to give its entry into the control panel. I have kept the following lines in the liferay-portlet.xml file

<control-panel-entry-category>content</control-panel-entry-category>
<control-panel-entry-weight>15</control-panel-entry-weight>

But i am unable to get the entry in to the control panel. But if i keep the same lines for some other portlet (portletemoticon then i am able to find the entry in the control panel.

Rgds,
thumbnail
Tejas Kanani, modifié il y a 11 années.

RE: how to add portlet in control panel entry

Liferay Master Publications: 654 Date d'inscription: 06/01/09 Publications récentes
Make sure your PortletA is not instanciable.
<instanceable>false</instanceable>


As your portlet must be non instanciable to be able to add it in Control Panel.
thumbnail
Mahendra Mahakle, modifié il y a 11 années.

RE: how to add portlet in control panel entry

Junior Member Publications: 80 Date d'inscription: 14/03/11 Publications récentes
Hi Simon,
Use following tags in liferay-portlet.xml file
<instanceable>false</instanceable>
<add-default-resource>true</add-default-resource>


thanks
mahendra
thumbnail
Hitoshi Ozawa, modifié il y a 11 années.

RE: how to add portlet in control panel entry

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
Further information on adding portlets to Control Panel

http://www.liferay.com/web/minhchau.dang/blog/-/blogs/1857476
thumbnail
Debasis Padhi, modifié il y a 9 années.

RE: how to add portlet in control panel entry

Junior Member Publications: 54 Date d'inscription: 23/03/12 Publications récentes
you need to customize in liferay-portlet.xml
bellow is example :
<portlet>
<portlet-name>HelloWorld</portlet-name>
<icon>/icon.png</icon>
<control-panel-entry-category>portal</control-panel-entry-category>
<control-panel-entry-weight>1.0</control-panel-entry-weight>
<instanceable>false</instanceable>
<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
<css-class-wrapper>HelloWorld-portlet</css-class-wrapper>
<add-default-resource>true</add-default-resource>
</portlet>
thumbnail
Enrique Valdes Lacasa, modifié il y a 8 années.

RE: how to add portlet in control panel entry

Junior Member Publications: 92 Date d'inscription: 29/07/14 Publications récentes
Thanks for the answer Debasis. By the way, in the 6.2 version, Control Panel portlets locations have been expanded to other places as well. Quoting from the following link: https://portal.permeance.com.au/web/chun.ho/profile/-/blogs/where-s-it-gone-control-panel-changes-from-liferay-6-1-to-6-2 :

"In 6.1 you could use liferay-portlet.xml to specify a <control-panel-entry-category> value of either "my", "content", "portal", "server" to place the portlet in the area in the control panel.

In 6.2 Liferay has expanded this list to:
My Account: "my"
Control Panel: "users", "sites", "apps", "configuration"
Site Administration: "site_administration.pages", "site_administration.content", "site_administration.users", "site_administration.configuration""