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 dlPortletToolbarContributorfield 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