<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Site Administration Control Panel Categories in the Product Menu</title>
  <link rel="self" href="https://liferay.dev/hu/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118934992" />
  <subtitle>Site Administration Control Panel Categories in the Product Menu</subtitle>
  <id>https://liferay.dev/hu/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118934992</id>
  <updated>2026-04-25T22:32:10Z</updated>
  <dc:date>2026-04-25T22:32:10Z</dc:date>
  <entry>
    <title>Site Administration Control Panel Categories in the Product Menu</title>
    <link rel="alternate" href="https://liferay.dev/hu/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118934991" />
    <author>
      <name>Orin Fink</name>
    </author>
    <id>https://liferay.dev/hu/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118934991</id>
    <updated>2020-04-15T01:58:15Z</updated>
    <published>2020-04-15T01:58:15Z</published>
    <summary type="html">It seems we have come across a convention that might be helpful for others to know about.   When building a custom category for the Product Menu, we ran into a snag whereby the scope group path was getting lost when going from portlets in the site admin section to portlets in the Control Panel section and back.  This was annoying as one would have to click on the &amp;#34;Go To Site&amp;#34; link in the Product Menu to reset their &amp;#39;state&amp;#39; and get the portlets in the custom category to use the scope that was selected.&lt;br /&gt;&lt;br /&gt;This manifested and became obvious when we realized we would see the links for site builder and content sections use the `/group/guest/~/control_panel` form of the URL but the links in our custom admin panel portlets ended up using the `/group/control_panel/manage` version of the url.&lt;br /&gt;&lt;br /&gt;We could not figure out what was driving the desired behaviour of those links in the Site Builder and the Content and Data categories until we discovered this nugget of code in the&lt;a href="https://github.com/liferay/liferay-portal/blob/68047d9fc93142413945796c94bc595fd3e55376/modules/apps/application-list/application-list-api/src/main/java/com/liferay/application/list/BasePanelApp.java#L187"&gt; BasePanelApp implementation class&lt;/a&gt;  that seems to be expecting the category key to start with `site_administration. ` (with a dot as defined in the &lt;a href="https://github.com/liferay/liferay-portal/blob/ffa0175f03b98dbbbb0e0db017cbc8b02c7af5da/portal-kernel/src/com/liferay/portal/kernel/util/PortletCategoryKeys.java#L49"&gt;PortletCategoryKey Constants Class&lt;/a&gt;)  in order to trigger the right logic so the Group Provider is used to build the right URL for the portlets in the panel.&lt;br /&gt;&lt;br /&gt;By choosing a Category key string that starts with `site_administration.` all of our troubles were resolved.   It would be awesome if a little more clarification to this end is documented in the overview of &lt;a href="https://help.liferay.com/hc/en-us/articles/360031167951-Adding-Custom-Panel-Categories#implementing-liferays-frameworks"&gt;creating custom Control Panel Categories&lt;/a&gt; that is provided here.&lt;br /&gt;&lt;br /&gt;Hope this helps somebody else along the way. </summary>
    <dc:creator>Orin Fink</dc:creator>
    <dc:date>2020-04-15T01:58:15Z</dc:date>
  </entry>
</feed>
