oo

Using Widgets on a Content Page

The widgets section functions just like the add menu on a widget page. The full list of available widgets appears, and you can add them to the page. The main difference is that only the main configuration options for widgets are available on content pages.

note

While widgets are rendered according to render-weight on widget pages, this is not true for content pages. Instead, they are rendered in the order they appear on the page (i.e. left to right, top to bottom).

Adding Widgets on Content Pages

  1. While adding elements to the content page, open the widgets panel and browse the available widgets or search for widgets by name.

  2. Drag the widget to the column and row of the layout where you want to place it.

A widget can be a wiki display or a dynamic publishing tool like the asset publisher. The content you display with widgets can be long-form text, an image gallery, or anything in between.

Configuring Widgets on Content Pages

  1. Hover over the widget.

  2. Click Actions (Actions menu icon) and select Configuration. From here you have several options, depending on the widget.

    You can configure widgets on content pages through their options menu.

  3. Click Save to apply the changes.

Configuring Widget Permissions on Content Pages

Since Liferay Portal 7.3 GA2, you can configure permissions for widgets from a content page. Follow these steps to configure widget permissions on a content page:

  1. Hover over the widget.

  2. Click Actions (Actions menu icon) and select Permissions.

  3. Check/uncheck the permissions for the roles in the new window that appears.

  4. Click Save to apply the changes.

note

When you create a page based on a page template, permissions are copied too. Permissions for a master page are set in the master page, not in the pages.

Export/Import Widgets on Content Pages

  1. Hover over the widget.

  2. Click Actions (Actions menu icon) and select Export / Import.

  3. Select the export or import tab to begin configuring the respective process.

Configuring Widget Configuration Templates on Content Pages

  1. Hover over the widget.

  2. Click Actions (Actions menu icon) and select Configuration Templates.

  3. Click Save Current Configuration as Template to save the widget’s current settings.

  4. Enter a name for your template and click Save.

Content Page Limitations for Widgets

Although you can access basic configuration options and permissions for widgets on content pages, there are still some options that are only available on widget pages:

  • Nested applications: Widgets within widgets are only supported on widget pages.

  • Look and Feel Configuration: On widget pages you can access the look and feel configuration menu through the widget’s actions (Actions icon), offering fine-grained control over its CSS. This is not available for widgets on content pages, since the look and feel of your content is defined in the theme or by using fragments.

Using Content Pages

Adding Elements to Content Pages

Content Page Editor UI Reference

Capability: