掲示板
how to add portlet in control panel entry
11年前 に simon tuffle によって更新されました。
how to add portlet in control panel entry
Regular Member 投稿: 150 参加年月日: 09/05/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,
11年前 に Tejas Kanani によって更新されました。
RE: how to add portlet in control panel entry
Liferay Master 投稿: 654 参加年月日: 09/01/06 最新の投稿
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.
11年前 に Mahendra Mahakle によって更新されました。
RE: how to add portlet in control panel entry
Junior Member 投稿: 80 参加年月日: 11/03/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
11年前 に Hitoshi Ozawa によって更新されました。
RE: how to add portlet in control panel entry
Liferay Legend 投稿: 7942 参加年月日: 10/03/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
9年前 に Debasis Padhi によって更新されました。
RE: how to add portlet in control panel entry
Junior Member 投稿: 54 参加年月日: 12/03/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>
8年前 に Enrique Valdes Lacasa によって更新されました。
RE: how to add portlet in control panel entry
Junior Member 投稿: 92 参加年月日: 14/07/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""