oo

Adding a Basic Web Content Article

When you have a lot of content to publish on your site, Liferay’s content management system helps you with practical and essential ways to manage it. Web content articles can be displayed through widgets, fragments, or display pages. See Previewing Web Content Articles to learn more.

Each web content article is based on a structure that defines its available fields. Liferay includes the Basic Web Content structure out-of-the-box, but you can create your own. See Understanding Web Content Structures for more information.

Creating a Basic Web Content Article

  1. Open the Site Menu (Site Menu) and navigate to Content & DataWeb Content.

  2. Under the Web Content tab, click New and select Basic Web Content.

  3. Enter a title (required) for the new article and add the desired content to their respective fields.

    The edit screen for a new web content article.

  4. Click Publish.

Your new article is created/submitted for workflow! You can now display your web content article on a page using the Web Content Display widget, for example.

Note

The user who creates the first version of a web content article becomes its owner. If another user edits the content (which creates a new version), ownership isn’t transferred.

Publish With Permissions and Schedule Publications

Liferay DXP 2024.Q2+/Portal 7.4 GA126+

Important

This feature is currently behind a release feature flag (LPD-15596). Read Release Feature Flags for more information.

While creating/editing a web content article, you can view and set the web content article’s visibility, view and set its permissions, and schedule its publication for a future date before publishing/submitting it for workflow.

Setting the Web Content Article’s Visibility and Permissions

  1. Follow the steps to create a web content article.

  2. Click Publish and select Publish with Permissions.

  3. Choose who can view the web content article by selecting an option under Viewable By (i.e., Anyone (Guest Role), Site Members, or the content’s Owner).

  4. Click More Options to view available permissions. Assign them to guest users or site members. See Assigning Permissions to Web Content Articles to learn more about each permission.

  5. Click Publish.

Set the web content article's visibility and permissions and schedule its publication before publishing/submitting it for workflow.

Once you publish your web content article, modify its permissions in one of two ways:

  • While in the editing page (1), open the Options menu (Options menu icon) at the top right corner and select Permissions.

  • Or, in the Web Content application (2), open the article’s Actions menu (Actions menu icon) and select Permissions.

Set permissions in the editing page or through the web content application.

Scheduling A Web Content Article’s Publication for a Future Date

  1. Follow the steps to create a web content article.

  2. Click Publish and select Schedule Publication.

  3. Select a valid date and time for your publication (UTC standard is used as a reference).

  4. While scheduling the publication, you can also choose who can view the web content article and define permissions for users.

  5. Click Schedule.

The web content article is now tagged as scheduled, and you can see the selected date and time by hovering over the ? icon next to the item.

Schedule your web content article's publication.

Once the publication is scheduled, you can reschedule it by editing and setting a different time.

When you reschedule the same publication multiple times, you can view all versions and their publication schedule by going to the Web Content application screen and clicking the article’s Actions menu (Actions menu icon) → View History.

Tip

All rescheduled versions of the web content article are published. Note that later scheduled versions replace previous ones.

Schedule the same web content article multiple times.

Web Content Article Permissions Reference

Permission Description
Update Discussion Edit another user’s comment on the web content article.
Delete Move the web content article to the Recycle Bin.
Permissions View and modify the web content article’s permissions.
Expire Set expiration dates for the web content article.
Delete Discussion Delete any comments on the web content article.
Update Edit and modify the web content article.
Subscribe Receive notifications on new and modified web content articles.
View View the web content article.
Add Discussion Comment on the web content article.

On the left, appear all permissions and users displayed when modifying your permissions. Liferay DXP 2024.Q2+/Portal 7.4 GA126+ On the right is a simplified view showing the most common roles displayed when creating an article.

On the left, displayed permissions while modifying your permissions. On the right, displayed permissions while creating an article.

Previewing Web Content Articles

You can preview your content using the selected default template or display page template before publishing, so you can make adjustments to ensure your content appears as intended to users.

Previewing a Web Content Article Using a Template

  1. In the properties tab, select a template to preview the web content article.

  2. Click Preview (Preview).

    The default template has a preview button that looks like an eye.

Note

Only web content articles that have been published or saved as a draft can be previewed.

Previewing a Web Content Articles Using a Display Page

You can preview web content using a display page template from any site or asset library.

  1. In the properties tab, select a site and display page to preview the web content article.

  2. Click Preview (Preview).

    When you've selected a display page template, use the preview button in the properties tab.

Note

Selecting the Preview button saves a draft of the web content article before displaying the preview.

Properties Tab

When creating or editing a Basic Web Content article, the following options appear in the sidebar menu’s Properties tab:

Property Purpose Additional Notes
Basic Information See basic information about the article including the web content structure it is based on, version and status, ID, and a short editable description. The structure cannot be edited once the article is created. See Web Content Structures for more information.
Default Template Select a default template to display this web content. See Creating Web Content Templates for more information.
Display Page Template Select a Display Page Template for this article, if one is desired. See Creating and Managing Display Page Templates for more information.
Featured Image Select a small image to use as the article’s thumbnail. The image can come from a URL, uploaded from your system, or from files located in Documents and Media.
Categorization Set any public or private categories, tags, or priority for the article. See Tagging Content and Organizing Content with Categories and Tags for more information.
Friendly URL Set a custom friendly URL for this article.
Schedule Schedule a date to display or expire the article, if desired. See Scheduling Web Content for more information.
Search Set whether this article will be indexed for search.
Related Assets Select any related assets, if desired.