Adding a Basic Web Content Article
Web content is one of the most practical and essential methods for creating site content. Web content articles can be displayed through widgets, Fragments, or display pages.
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
Open the Site Menu (
), and navigate to Content & Data → Web Content.
Click on the Add button (
) and select Basic Web Content.
.
Enter a title (required) for the new article and add the desired content to their respective fields.
When finished, click Publish.
Congratulations! You have added a basic web content article to your Site. See Using the Web Content Display Widget for more information on displaying this article on a page.
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
In the properties tab, select a template to preview the web content article.
Click Preview (
).
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.
In the properties tab, select a site and display page to preview the web content article.
Select the Preview button.
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, you can access the following options via the Properties tab in the sidebar menu:
Property | Purpose | Additional Notes |
---|---|---|
Basic Information | Displays the structure the web content is based on, and a Summary field where you can enter a short description. | The structure cannot be edited once the article is created. See Web Content Structures for more information. |
Default Template | Used to select which template to use to display this web content, by default. | See Adding Web Content Templates for more information. |
Display Page Template | Used to select a Display Page Template for this article, if one is desired. | See Creating and Managing Display Page Templates for more information. |
Featured Image | Used to select a small image to use as the article’s thumbnail. | The image can come from a URL or uploaded from your system. |
Metadata | Used to set any tags or priority for the article. | See Tagging Content for more information. |
Friendly URL | Used to set a custom friendly URL for this article. | |
Schedule | Used to schedule a date to display or expire the article, if desired. | See Scheduling Web Content for more information. |
Search | Used to set whether this article will be indexed for search. | |
Related Assets | Used to select any related assets, if desired. | |
Permissions | Used to set any permissions for Guests or Site Members, specific to the article. | Click More Options to see who can view the article. See Roles and Permissions for more information. |