Issue
- When deploying a custom portlet on a Widget page, several options will appear in the ellipsis menu:
- After placing the same portlet on a Content Page, those options will no longer appear.
Environment
- Liferay DXP 7.1
- Liferay DPX 7.2
Resolution
-
Content Pages are especially conceived to publish pieces of stylish-able web contents (Fragments) and to provide a different experience both for content editors and web developers. The "traditional" portlet experience and functionalities have been going under a large refactoring. Please find some notable paths below:
- Configuration: The Configuration menu is accessible in edit mode on the Content Page itself:
- Switch to Edit mode for the whole Content Page
- Hover the mouse over the custom portlet deployed onto the page
- Find the cog wheel on the right-handed side of the portlet, click on the icon
- The Configuration option will now be available
-
Preferences: The Preferences option, obtained on custom portlets deployed on Widget Pages through the
javax.portlet.init-param.edit-template
java property, is no longer available on Content Pages. Instead, you may usejavax.portlet.init-param.config-template
: a sample is available at: https://github.com/liferay/liferay-blade-samples/tree/7.2/gradle/apps/configuration-action. Once implemented, the preferences will be available as a separate tab under the Configuration menu.
-
Permissions: Setting Permissions on individual widgets/portlets for Content Pages is a feature implemented only on Liferay DXP 7.3, therefore it won't be possible to find on 7.1 and 7.2. More details here: https://issues.liferay.com/browse/LPS-102583
- Look and Feel: For the Look and Feel section, please refer to this article: https://help.liferay.com/hc/en-us/articles/360040826792-I-cannot-configure-the-Look-and-Feel-of-widgets-on-the-Content-Page