legacy-knowledge-base
公開されました Sep. 10, 2025

How to Add a Custom Element as a Control Panel or Site Administration Widget

written-by

Jose L. Bango

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • Is it possible to add a Custom Element, created via a Client Extension, as a widget in the Control Panel or Site Administration menu?

Environment

  • Liferay DXP 2025.Q1

Resolution

Yes, it is possible to add custom elements to the Control Panel and Site Administration menus. Instead of using the portletCategoryName property in the client-extension.yaml file, use the panelCategoryKey property.

Below are examples of how to add a custom element to different administrative areas.

Adding to Control Panel

To add the application to the Control Panel under Applications > Custom Applications, use the following configuration:

instanceable: false
name: My Custom App
panelAppOrder: 10
panelCategoryKey: applications_menu.applications.custom.apps
image (2).png

Adding to Site Administration

To add the application to Site Administration under the Content section, use the following configuration:

instanceable: false
name: My Custom App
panelAppOrder: 10
panelCategoryKey: site_administration.content
image (3).png

The available keys for placement can be found in the Liferay DXP source code. See PanelCategoryKeys.java and PortletCategoryKeys.java

Additional Information

did-this-article-resolve-your-issue

legacy-knowledge-base