Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Adding custom panel menu
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");
}
}
Finally I get it
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™