留言板
how to add portlet in control panel entry
simon tuffle,修改在11 年前。
how to add portlet in control panel entry
Regular Member 帖子: 150 加入日期: 09-5-18 最近的帖子
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 (portlet then i am able to find the entry in the control panel.
Rgds,
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 (portlet then i am able to find the entry in the control panel.
Rgds,
Tejas Kanani,修改在11 年前。
RE: how to add portlet in control panel entry
Liferay Master 帖子: 654 加入日期: 09-1-6 最近的帖子
Make sure your PortletA is not instanciable.
As your portlet must be non instanciable to be able to add it in Control Panel.
<instanceable>false</instanceable>
As your portlet must be non instanciable to be able to add it in Control Panel.
Mahendra Mahakle,修改在11 年前。
RE: how to add portlet in control panel entry
Junior Member 帖子: 80 加入日期: 11-3-14 最近的帖子
Hi Simon,
Use following tags in liferay-portlet.xml file
thanks
mahendra
Use following tags in liferay-portlet.xml file
<instanceable>false</instanceable>
<add-default-resource>true</add-default-resource>
thanks
mahendra
Hitoshi Ozawa,修改在11 年前。
RE: how to add portlet in control panel entry
Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Further information on adding portlets to Control Panel
http://www.liferay.com/web/minhchau.dang/blog/-/blogs/1857476
http://www.liferay.com/web/minhchau.dang/blog/-/blogs/1857476
Debasis Padhi,修改在9 年前。
RE: how to add portlet in control panel entry
Junior Member 帖子: 54 加入日期: 12-3-23 最近的帖子
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>
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>
Enrique Valdes Lacasa,修改在8 年前。
RE: how to add portlet in control panel entry
Junior Member 帖子: 92 加入日期: 14-7-29 最近的帖子
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""
"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""