Using the Web Content Display Widget

Using the Web Content Display Widget

After you create a Web Content Article, the quickest way to display it on a page is the Web Content Display widget. Once a Web Content Article is displayed, content updates appear immediately, unless you configure a workflow to review and approve the updates.

Adding Web Content Display to a Page

  1. Under the Site Menu, go to Site BuilderPages.

  2. Click the Actions (Actions) button next to the page you want to edit and select Edit (alternatively, create a new Content Page.)

  3. From the Content Page sidebar, select the Fragments and Widgets button.

  4. Select the Fragments tab and drag-and-drop the Web Content Display widget onto the page.

    Drag-and-drop the Web Content Display widget onto the page

  5. Hover over the Web Content Display widget and from the widget’s Actions (Actions) menu, select Configuration.

    Open the configuration options for the Web Content Display widget

  6. In the Web Content Display Configuration, click Select under the Setup tab.

  7. In the Select Web Content dialog, click the web content you want to add.

  8. Setup optional Web Content Display options.

  9. Click Save and close the Web Content Display Configuration dialog.

  10. If you want to publish the Content Page, click Publish.

Web Content Display Setup Options

You can configure other options in the Web Content Display widget. To access the widget’s configuration, hover over the Web Content Display widget and from the widget’s Actions (Actions) menu, select Configuration. You can find the configuration options under the Setup tab.

Configuration options for the Web Content Display

Template

Option Description
Use default template Uses the default template to display the widget. You can see the default template’s name in use here.
Use a specified template Select this option to display the widget using a different template. You must select the new template.

User Tools

Option Description
Translations Shows additional translations for your content. If you have your content translated into different languages, use this option to show the desired translation.
Print Provides a print dialog with a print-friendly version of the content.
Download as PDF, DOC, ODT, TXT Downloads the selected widget content in the format of your choice. This option is only available after configuring the OpenOffice or LibreOffice integration.

Content Metadata

Option Description
Related Assets Set this option to show links to other related content. You configure the related content in the Related Assets property for your content (see the image below for an example on a Basic Web Content asset.)
Ratings Shows a clickable option where users can rate the content in different ways (likes, stars, thumbs up). To configure this rating option for different content types, see Configuring Content Rating Type.
Comments Allows users to enter comments for the Web Content Display widget’s content. By default, guests can’t leave comments. See Enabling Comments for Guest to change the default option.
Comment Ratings Shows a rating option for comments.

Configuring Related Assets for a Basic Web Content entry

View Count Increment

Enable the View Count Increment option to add a view counter to this Web Content Display widget.

Additional Options for the Web Content Display Widget

In addition to the setup options, you can configure additional settings in the Web Content Display Widget.

Enabling Comments for Guests

By default, guests can’t leave comments on web content. If you want to allow guests to comment on your web content article, follow these steps:

  1. Open the Global Menu (Global Menu icon) and go to Control PanelUsersRoles.
  2. Click the Guest Rol.
  3. Click the Define Permissions column.
  4. From the left menu, select Site and Asset Library AdministrationContent & DataWeb Content.
  5. Under the Web Content Article section, check Add Discussion.
  6. Click Save.

Editing Content from the Web Content Display Widget

You can edit published content directly from the Web Content Display widget when you work with the Content Page in Edit mode.

  1. Click the Web Content Display widget.

  2. On the sidebar panel, click the Contents (Contents) button.

  3. Under Contents, click the Actions (Actions) button for the content you want to edit.

  4. Select Edit.

    Open the editing options for the Web Content Display widget

Integrating OpenOffice or LibreOffice with the Web Content Display

If you enable the OpenOffice or LibreOffice integration with your Liferay Portal instance, you can enable document conversion for your content. With this integration, users can download the content in different formats. You must select the available formats under the User Tools configuration for the Web Content Display Widget.