Forums de discussion

new category in control panel

vinod kumar, modifié il y a 11 années.

new category in control panel

Junior Member Publications: 64 Date d'inscription: 04/10/12 Publications récentes
hi all,

I have a Question how to add a new category in control panel

how to do this
plz help me

thank u
vinod
thumbnail
Hitoshi Ozawa, modifié il y a 11 années.

RE: new category in control panel

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
I'm not sure about your question but I think there was a "Category" in the menu or are you asking something entirely different.
vinod kumar, modifié il y a 11 années.

RE: new category in control panel

Junior Member Publications: 64 Date d'inscription: 04/10/12 Publications récentes
hi hitoshi

when we open control panel we can find 4 category's named blogs,liferay,portal,server.on your left side.
now i want one more category "education" below the portal category

this is my question.
thumbnail
Hitoshi Ozawa, modifié il y a 11 années.

RE: new category in control panel

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
Did you take a look at <control-panel-entry-category> in the following file
/webapps/ROOT/WEB-INF/liferay-portlet.xml
thumbnail
Vitaliy Koshelenko, modifié il y a 11 années.

RE: new category in control panel

Expert Publications: 319 Date d'inscription: 25/03/11 Publications récentes
Hi, Vinod.

If you need to add your custom control panel category - you can patch com.liferay.portal.util.PortletCategoryKeys class:

public class PortletCategoryKeys {

    public static final String CONTENT = "content";

    public static final String MARKETPLACE = "marketplace";

    public static final String MY = "my";

    public static final String PORTAL = "portal";

    public static final String SERVER = "server";

    public static final String[] ALL = {
            MARKETPLACE, MY, CONTENT, PORTAL, SERVER
    };

}


Just specify category you need and add it to ALL array. After that set <control-panel-entry-category> to the value you specified.

Vitaliy
thumbnail
Riya M S, modifié il y a 11 années.

RE: new category in control panel

Junior Member Publications: 45 Date d'inscription: 30/01/13 Publications récentes
Have a look
http://www.liferay.com/community/forums/-/message_boards/message/9540478
Parikshit Sharma, modifié il y a 11 années.

RE: new category in control panel

New Member Publications: 21 Date d'inscription: 16/01/13 Publications récentes
Why can't you simply hook the jsp(portlet/control_panel_menu/view.jsp)...
thumbnail
Nono Carballo, modifié il y a 10 années.

RE: new category in control panel

New Member Publications: 15 Date d'inscription: 25/06/12 Publications récentes
Parikshit Sharma:
Why can't you simply hook the jsp(portlet/control_panel_menu/view.jsp)...


I have modified the html/portlet/control_panel_menu/view.jsp in a hook. I have added my category name to the allCategories array, in the place where I want it be visible.
In my portlet I have the modified de control-panel-entry-category in liferay-portlet.xml to point to my new category, I have also added the language propery in the hook.

The ne category appears in control panel and the portlet is listed in, but when I access the portlet I got the error "You do not have the required permissions to access this application.". If I move the portlet to the content category (where it was before) everything works fine. The URL generated is the same in both categories.

I have also created a ControlPanelEntry class and overriden isVisible (both) methods to return true, and the method (the one with the largest signature) is called.

Any help? I don't know where to look for.

Nono