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 ...
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 theportlet.ftl
file accordingly, for example:
<div class="autofit-float autofit-row portlet-header">
For a full reference, you may want to observe a fresh
<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>portlet.ftl
file from 7.2 DXP vanilla theme created with the Liferay Theme Generator