+

Search Tips   |   Advanced Search


Web content page templates

Although it is not recommended, it is possible to use existing Web content pages as template pages for the creation of new Web content pages. Web content page templates can contain any number of preconfigured or unconfigured portlets. Whenever a new page is created from the template, the page layout, portlets, and portlet configuration from the template are copied to the new page. However, if you do choose to use a Web content page as a template, take special care with regards to the sharing of public render parameters.

Web content pages contain an instance of the JSR 286 Web Content Viewer to render the content items that are configured for that Web content page. When one Web content page contains links to content items rendered in another Web content page, context information for those links is broadcast to the second Web content page with a public render parameter. However, because the public render parameter is potentially available to all instances of the JSR 286 Web Content Viewer, the sharing of this parameter is limited to one specific Web content page. Otherwise, all other Web content pages containing a JSR 286 Web Content Viewer would also render the same content item after a broadcast to another page. To prevent this, Web content pages control parameter sharing with the param.sharing.scope parameter, which limits sharing to the current page.

To use a Web content page as a template page for new Web content pages, you should either remove the param.sharing.scope parameter from the template page parameters or be aware of the implication of sharing the public wcm context render parameter across Web content pages. If no param.sharing.scope parameter is found on the template page used to create a new Web content page, a new unique value is used to automatically add the param.sharing.scope parameter to the new Web content page during creation.

Another aspect that must be considered when using a Web content page as a template page is the fact that the dynamic broadcasting feature selects the first page found that is associated with the site or site area where a selected content item resides. Using a Web content page as a template page could result in selecting the template page as the page to display a content item.


Parent topic:

Work with Web content pages


Related concepts


Public render parameters