Legacy Knowledge Base
Published Jul. 2, 2025

After 7.0 > 7.1 or 7.2 theme upgrade, the menu to edit web contents will no longer be available

Written By

Alfonso Crisci

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

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

Issue

  • After upgrading to DXP 7.1 or 7.2 a 7.0 DXP theme created with the Liferay Theme Generator according to e.g. this tutorial: Upgrading Your Theme from Liferay Portal 7.0 to 7.2, the Web Content Display widget showing a piece of web content will no longer have the menu options to Edit Web Content, Edit Template, etc ...

    mceclip0.png

Environment

  • Liferay DXP 7.1+

Resolution

  • Make sure to address the 7.0 > 7.1 theme upgrade warning:


    File: portlet.ftl
    Warning: Several Applications in Liferay Portal 7.1 rely on a portlet_header_${portletId} extension point to show additional controls. When overwriting portlet.ftl, please, make sure you add a `<@liferay_util["dynamic-include"] key="portlet_header_${portlet_display_root_portlet_id}" />`.


    and edit the portlet.ftl file accordingly, for example:
     <div class="autofit-float autofit-row portlet-header">
       <div class="autofit-col autofit-col-expand">
         <h2 class="portlet-title-text">${portlet_title}</h2>
       </div>
                  
    <div class="autofit-col autofit-col-end">
    <div class="autofit-section">
    <@liferay_util["dynamic-include"] key="portlet_header_${portlet_display_root_portlet_id}" />
    </div>
    </div>
    </div>
    For a full reference, you may want to observe a fresh portlet.ftl file from 7.2 DXP vanilla theme created with the Liferay Theme Generator

 

Did this article resolve your issue ?

Legacy Knowledge Base