Best practices for pages | HCL Digital Experience
Use these tips and guidelines to develop and deploy pages more effectively.
Create links in web content to portal pages
- By editing a content item in the rich text editor and inserting a link.
- By creating a link component.
- Edit the page properties in the portal user interface and select View References.
- Select the page item in the authoring portlet in Web Content Manager and click .
Use unique friendly URLs with pages
When you create pages, it is not possible to programmatically enforce uniqueness of friendly URLs in all circumstances. Because of this behavior, it is possible to create multiple pages that have the same friendly URL, which can produce unexpected results. To prevent potential confusion, ensure that all friendly URLs that you create are unique.
Use transaction processing with the XML configuration interface
To ensure that page and database information for a page remain synchronized, use the transaction-level
attribute of the request
element in the XML file. For more information about using the transaction-level
attribute, go to XML configuration reference.
<request
type="update"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="PortalConfig_8.5.0.xsd"
transaction-level="resource">
Associating extra metadata to a portal page
When you need to associate extra metadata to a portal page, create a separate content item that stores the metadata and that can be referenced by using the portal page metadata. Since the portal page content template is not exposed as public API it is not advised to add elements to the portal page content item itself.