Legacy Knowledge Base
Published Jul. 2, 2025

Menu links not showing up in custom module after upgrading to Liferay DXP 7.3

Written By

Justin Mann

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

  • In Liferay DXP 7.0, users may have used the out-of-the-box Document Library Display Portlet to implement their own customizations with uploading Documents. However, when migrating this customization to Liferay DXP 7.3, it has been found that Document links or Menu items may not be showing up as expected.

 

Environment

  • Liferay DXP 7.3

 

Resolution

  • This issue is occurring because the getPortletTitleMenus method, which could previously be used in the view_file_entry.jsp file has been deprecated. This change occurred in LPS-91461, where we changed the way that the dlPortletToolbarContributor field is required to be injected. This change can be referenced in the following example, showing changing from the previous way to the newer way of instantiating a dlPortletToolbarContributor filed: https://github.com/liferay/liferay-portal/commit/f37803f11dfb5669a9466614a50860455ac2fe26
  • Instead of using the DLPortletToolbarContributor class, the DefaultDLPortletToolbarContributor​ can be used. This is the intended one to be used although the way that the dlPortletToolbarContributor​field is inject/instantiate may need to change when adapting an upgraded customization from Liferay DXP 7.0 to Liferay DXP 7.3 to make sure that it's of the DefaultDLPortletToolbarContributor class rather than the DLPortletToolbarContributor class

 

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base