Create a web content page
A web content page is a page associated to one or more site areas in Web Content Manager. We can create a web content page from a web content template page, or we can convert an existing portal page into a web content page.
A web content page always restricts the sharing scope for public rendering parameters to the page itself. The corresponding page parameters are automatically added to the page when a page is associated to a site area.
Caching note: When using web content pages, we cannot use advanced web content caching but instead can use only the portlet fragment cache.
- There are two ways to create a web content page.
- Follow these steps to create a web content page from a web content template page:
- Navigate to the page where to add the new page, and edit the page.
- Click More > New Sibling Page and use the Create Page window to create the page. Select a web content page template for the new page.
If managed pages are enabled, all page templates result in web content pages.
- Click Create Page to create a web content page from the selected template.
If the page template has a default content association, the new page is automatically associated with a new copy of the referenced site area. Any other content associations that are not designated as the default association are copied without changes.
- Follow these steps to convert a portal page to a web content page:
- Navigate to the page where to add the new page, and edit the page.
- In the Overview tab, click Edit in the Web Content section of the page properties.
- In the Page Associations window, click Add web content.
- Select one or more site areas to associate with the page, and click OK.
- Specify the default association by selecting the association in the Default column.
- After creating the web content page, we can add web content viewers to the page from the Content tab of the site toolbar.
We can add a standard Web Content Viewer (JSR 286) portlet, or we can add any predefined web content viewers that you create.
- If we add a standard web content viewer, the viewer renders any content from the site area indicated by the default content association of the page.
- If we add a predefined viewer that is configured to create content with the Create content (based on selection) setting, the following things happen:
- The base content referenced by the viewer is copied into the site area referenced by the default content association of the page.
- The new instance of the viewer renders the copied content in the site area referenced by the default content association of the page.
An example of this type of predefined viewer is the Rich Text viewer that is available from the Web Content category of the Content tab.
Parent: Display content with web content viewersRelated:
Web content pages and templates
Related: