Legacy Knowledge Base
Published Jun. 30, 2025

How can I display the maximize and minimize buttons in my widget

Written By

Daniel Mijarra

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • I upgraded from 6.2 version to 7.4 and I am not able to configure maximize and minimize buttons in my widgets as I had in 6.2 version. I used to add $theme.iconMinimize() and $theme.iconMaximize() to my custom theme using Velocity.

Environment

  • 2024.Q1
  • 2023.Q4
  • 2023.Q3
  • DXP 7.4

Resolution

  • Since LPSA-79897, this code is moved to a theme configuration.
  • To adapt your code you have to:
    1. Add the configurable setting to your custom theme:
      <setting configurable="true" key="show-maximize-minimize-application-links" type="checkbox" value="true" />.
      You can take the Classic Theme code as an example: Classic Theme - liferay-look-and-feel.xml.
    2. Use the liferay-frontend["icon-options"] tag to display the configuration options:
      1. To use the Front-end taglib in you apps, add the following declaration to your JSP: <%@ taglib prefix="liferay-frontend" uri="http://liferay.com/tld/frontend" %>
      2. Then add <liferay-frontend["icon-options"]/> to your JSP.
      3. For Freemarker templates use <@liferay_frontend["icon-options"] instead.
  • Once the theme is deployed and configured for a page (or set of pages), you can enable or disable this option from the Design tab of the page: Maximize_and_Minimize.png

NOTE: The following resolution requires customization and should only be implemented at the discretion of your team. Liferay Support will not be able to assist with designing or implementing customizations.

Did this article resolve your issue ?

Legacy Knowledge Base