Skip to content

Page templates

Content authors use the page templates to quickly create pages that are consistent with your site design. They do not have to waste time to configure settings that are probably consistent across your site, such as theme selection, page layout, and more.

Available page templates

Several templates are provided for immediate use: Basic, Label, Articles, Content, and Landing Page. The Basic template is an empty page that you can add content to and has two choices: Portal 8.5 theme or inherit theme.

The Articles template has two portlets that display content, List of Articles and Article. There is also a content association between the two portlets. The List of Articles portlet displays a list of the articles that are stored in the page site area. You can select an article from the list and it displays in the Article portlet. Both of the portlets were developed from the Web Content Viewer portlet.

The Label template is a simple label. Labels are navigation elements. The label displays in the navigation, but label type page does not include content. The content of the first child page displays when you click the label in the navigation.

Custom page templates

The provided page templates are probably not comprehensive enough for your website. Based on your HTML prototype or wireframe for your website, you can determine common page layouts and configurations. After you identify a few common page layouts from your design, then you can create templates for the content authors. For example, if each landing page in your site includes breadcrumbs, a carousel, and a three-column content area, then create a landing page template with those elements.

When you create a template you can include portlets and portlet preferences, page layout and style selections, theme and skin settings, portlet wires for communication with other portlets, page parameters, and page descriptions. Use the Manage Pages portlet in the Administration area to create new templates.

Page templates are created in a specific area of the portal hierarchy located in the Manage Pages portlet under Content Root > Hidden Pages > Page Templates. The Pages that you add to this area automatically appear as an available page template in the Administration > Site Management > Page Templates area and in the dropdown selection in the Manage Pages portlet when a new page is created based on a template.

Note

When you create a new page based on a page template, you might see the following error message: The page template could not be instantiated underneath the page PARENT_PAGE since this page has no default content association to a site area outside of the Portal Site library or the current user does not have access to the mapped site area. To prevent this from happening, decide where to store the content that is copied from the template page to your new page:

  • If you want to store the content outside of the Portal Site library, create a default content association to a site area outside of the Portal Site library for the parent page of the new page.
  • If you want to store the content in the Portal Site library, transfer the content for the template page to the Portal Site library first. For more information, go to Transferring content associations to the Portal Site library.

Default page template

The page template with the unique name wps.content.template.default is selected by default when you create a page by using a page template.

Note

This default page template is also applicable in previous versions.

To modify, edit the settings of the New Page portlet and add a new parameter:

  1. In the New Preference field, enter ibm.portal.explorer.default.page.template.
  2. In the New Value field, enter a unique name of the desired default page template.
  3. Click Add.

For more information, see Configuring portlet applications or portlet parameters and Modifying portlet application settings.

Related information