RE: Adding custom panel menu

thumbnail
Jamie Sammons, modified 2 Years ago. New Member Posts: 7 Join Date: 10/5/22 Recent Posts

I want to add custom panel menu like Feedback & Inquiry panel in the following pic. liferay DXP 7.0

package com.liferay.docs.report.application.list;

import com.liferay.application.list.BasePanelCategory;
import com.liferay.application.list.PanelCategory;
import com.liferay.application.list.constants.PanelCategoryKeys;
import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.util.ResourceBundleUtil;


import org.osgi.service.component.annotations.Component;

import constants.ReportPanelCategoryKeys;

import java.util.Locale;
import java.util.ResourceBundle;

@Component(immediate = true, property = {"panel.category.key=" + PanelCategoryKeys.SITE_ADMINISTRATION, "panel.category.order:Integer=100"}, service = PanelCategory.class)
public class ReportPanelCategory extends BasePanelCategory {

	@Override
	public String getKey() {
		return ReportPanelCategoryKeys.CONTROL_PANEL_CATEGORY;
	}

	@Override
	public String getLabel(Locale locale) {
		ResourceBundle resourceBundle = ResourceBundleUtil.getBundle("content.Language", locale, getClass());

		return LanguageUtil.get(resourceBundle, "category.custom.label");
	}
}
thumbnail
Jamie Sammons, modified 2 Years ago. New Member Posts: 7 Join Date: 10/5/22 Recent Posts

Finally I get it