掲示板
New Section in ControlPanel
13年前 に Deepjyoti Nath によって更新されました。
New Section in ControlPanel
Junior Member 投稿: 86 参加年月日: 10/11/02 最新の投稿
Hi,
Is it possible to add a new Section under control panel? By default when an adminstrator goes to control panel, he can see portlets under Content, Portal and Server sections. Is it possible to add a custom section under which custom user created portlets can be put? If yes can anyone please provide a solution?
Thanks in advance!!!
Is it possible to add a new Section under control panel? By default when an adminstrator goes to control panel, he can see portlets under Content, Portal and Server sections. Is it possible to add a custom section under which custom user created portlets can be put? If yes can anyone please provide a solution?
Thanks in advance!!!
13年前 に Piotr Filipowicz によって更新されました。
RE: New Section in ControlPanel
Junior Member 投稿: 52 参加年月日: 10/11/18 最新の投稿
Hi!
It's possible to add custom section in control panel.
The simpliest way is create ext environment in your project and override com.liferay.portal.util.PortletCategoryKeys util.
For example add Test section:
Then you go into your specific portlet and put <control-panel-entry-category>test</control-panel-entry-category> in liferay-portlet.xml
--
Best regards,
Piotr Filipowicz
It's possible to add custom section in control panel.
The simpliest way is create ext environment in your project and override com.liferay.portal.util.PortletCategoryKeys util.
For example add Test section:
public static final String TEST = "test";
public static final String[] ALL = {MY, CONTENT, PORTAL, SERVER, TEST};
Then you go into your specific portlet and put <control-panel-entry-category>test</control-panel-entry-category> in liferay-portlet.xml
--
Best regards,
Piotr Filipowicz
13年前 に Deepjyoti Nath によって更新されました。
RE: New Section in ControlPanel
Junior Member 投稿: 86 参加年月日: 10/11/02 最新の投稿
Hi Piotr,
Thnaks for your reply. Now my custom section is coming in the Control Panel. But instead of Test, the section is coming as "category.test". How this "category" has been appended?
Thanks again.
Thnaks for your reply. Now my custom section is coming in the Control Panel. But instead of Test, the section is coming as "category.test". How this "category" has been appended?
Thanks again.
13年前 に Piotr Filipowicz によって更新されました。
RE: New Section in ControlPanel
Junior Member 投稿: 52 参加年月日: 10/11/18 最新の投稿
Hello again!
This is easy. Put the key category.<your_category_name> in Language.properties or Language_<your country>.properties.
--
Piotr Filipowicz
This is easy. Put the key category.<your_category_name> in Language.properties or Language_<your country>.properties.
--
Piotr Filipowicz
13年前 に Piotr Filipowicz によって更新されました。
RE: New Section in ControlPanel
Junior Member 投稿: 52 参加年月日: 10/11/18 最新の投稿
Sory, I read your post in a hurry.
"Category" is append in file: portal/portal-web/docroot/html/portlet/control_panel_menu/view.jsp
--
Piotr Filipowicz
Deepjyoti Nath:
How this "category" has been appended?
"Category" is append in file: portal/portal-web/docroot/html/portlet/control_panel_menu/view.jsp
title = LanguageUtil.get(pageContext, "category." + curCategory);
--
Piotr Filipowicz
13年前 に Mati Khan によって更新されました。
RE: New Section in ControlPanel
Junior Member 投稿: 25 参加年月日: 10/11/01 最新の投稿
Hi,
Can you tell me where you placed the package com.liferay.portal.util in ext-plugin
in ext-impl or ext-service
And example will be good to implement it.
Thanks.
Can you tell me where you placed the package com.liferay.portal.util in ext-plugin
in ext-impl or ext-service
And example will be good to implement it.
Thanks.
13年前 に Piotr Filipowicz によって更新されました。
RE: New Section in ControlPanel
Junior Member 投稿: 52 参加年月日: 10/11/18 最新の投稿
This is very good question. This class should be in the portal-service package. But in the ext plugin you cannot override PortletCategoryKeys. This is not as easy as I thought. So, you'll need change your liferay source?!?
Who can give us better way?
Who can give us better way?
12年前 に Daniel Lipski によって更新されました。
RE: New Section in ControlPanel
New Member 投稿: 3 参加年月日: 11/04/13 最新の投稿
Hi,
I got exactly the same issue. Have you found solution for this ?
Reagrds
Daniel
I got exactly the same issue. Have you found solution for this ?
Reagrds
Daniel
12年前 に Tomas Polesovsky によって更新されました。
RE: New Section in ControlPanel
Liferay Master 投稿: 676 参加年月日: 09/02/13 最新の投稿
Hi,
I don't know which version do you use - so take it as a tutorial
You'll need to use Ext Plugin.
1, in liferay source of your version find ./portal-impl/src/com/liferay/portal/util/PortalImpl.java and search for lines with PortletCategoryKeys.ALL.
2, create new class MyPortalImpl that extends PortalImpl and override the methods you find (replace PortletCategoryKeys.ALL with new String[]{....})
3. using your ext-spring.xml redefine bean: <bean id="com.liferay.portal.util.Portal" class="xxx.MyPortalImpl" />
4, copy portal-web/docroot/html/portlet/control_panel_menu/view.jsp from liferay sources into ext-web/docroot/html/portlet/control_panel_menu/view.jsp and change
I think this way could work.
I don't know which version do you use - so take it as a tutorial
You'll need to use Ext Plugin.
1, in liferay source of your version find ./portal-impl/src/com/liferay/portal/util/PortalImpl.java and search for lines with PortletCategoryKeys.ALL.
2, create new class MyPortalImpl that extends PortalImpl and override the methods you find (replace PortletCategoryKeys.ALL with new String[]{....})
3. using your ext-spring.xml redefine bean: <bean id="com.liferay.portal.util.Portal" class="xxx.MyPortalImpl" />
4, copy portal-web/docroot/html/portlet/control_panel_menu/view.jsp from liferay sources into ext-web/docroot/html/portlet/control_panel_menu/view.jsp and change
String[] allCategories = PortletCategoryKeys.ALL;
into String[] allCategories = new String[]{....}
I think this way could work.
12年前 に Apoorva Prakash によって更新されました。
RE: New Section in ControlPanel
Liferay Master 投稿: 658 参加年月日: 10/06/15 最新の投稿
Hi all,
In my case, making category entry in language-ext.properties worked.
So why it is needed to modify the view.jsp of control panel, I can't understand.
Thanks
In my case, making category entry in language-ext.properties worked.
So why it is needed to modify the view.jsp of control panel, I can't understand.
Thanks
9年前 に Nguyen Hong Duy Anh によって更新されました。
RE: New Section in ControlPanel
New Member 投稿: 2 参加年月日: 14/09/17 最新の投稿
I want set permission for my custom portlet in custom section I was created. I don't see my portlet in Add Permission select menu. I think because my portlet put in my custom section. I see the icon of my custom section is a User icon. So, how do I set permission for my custom section like a content section. I want add permission for my custom portlet in custom section.
Sr for my english.
Thanks
Sr for my english.
Thanks
13年前 に Deepjyoti Nath によって更新されました。
RE: New Section in ControlPanel
Junior Member 投稿: 86 参加年月日: 10/11/02 最新の投稿
Thanks man!!!