Newer Version Available

This content describes an older version of this product. View Latest

Create Custom Pages in an LWR Site

LWR templates in Experience Cloud provide only a few key default pages, so you can create additional custom pages for your particular use case.

To create a custom page, open the Pages menu on the top toolbar in Experience Builder. Click New Page at the bottom of the Pages menu. See Create Custom Pages with Experience Builder in Salesforce Help.

Standard Pages

When creating custom pages, the Search standard page is available for the template and supports certain routes and URL parameters.

Some preconfigured standard pages, such as Account Management, are unsupported.

Note

Object Pages

Because the recommended solutions for record page components use the User Interface API to retrieve data, create object pages only for Supported Objects in the User Interface API Developer Guide.

Unlike in Aura templates, there are no generic record pages. If you need record pages, you must create them for a specific object.

Note

Login Pages

To use the Login, Forgot Password, and Registration pages that come with the LWR templates, ensure that your site is published. In the Login & Registration tab of the Administration workspace, select Experience Builder Page for each page. Enter main for the Login page (1), Forgot Password for the Forgot Password page (2), and Register for the Registration page (3).

Login page, Forgot Password Page, and Registration page selection.

Page Access & Authentication

As is the case with Aura sites, we send page metadata to the client for all routes in the site, including for guest user sessions.

For LWR sites, URL parameter validation during navigation differs from Aura sites. For example, we don’t prevent a user from accessing a record route when they don’t have permission to access that object or that particular record. We also don’t validate that URL parameters correspond to valid existing data in the org.

It’s the responsibility of the components on the page and the APIs used to enforce correct user sharing rules when retrieving data. Therefore, don’t put sensitive information on a page unless the data comes from an API that implements user access rules.

Important