Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Pages and Components in LWR Templates
Site Pages
LWR templates typically include the following template pages, so to create a working site, you often need to create additional custom pages.
- Home
- Error
- Check Password
- Forgot Password
- Login
- Register
- News Detail (available in enhanced LWR sites)
Page Components
We provide several components with LWR templates, but to accomplish your goals, you often must create custom Lightning web components.
For more information on the components readily available in LWR templates, see Standard Components for LWR Templates in Salesforce Help.
Light DOM in LWR Templates and Standard Components
Before Spring ’22, standard Lightning web components in the LWR templates rendered by default in shadow DOM (Document Object Model), making it difficult to integrate third-party analytics services. Now these templates and several of their components are enabled with light DOM. In Lightning web components enabled with light DOM, you can query DOM elements from the document root, which facilitates DOM traversal. You can listen for events within these components and send the events to multiple third-party analytics services, such as Google Analytics.
To take advantage of light DOM on an existing LWR site, republish the site.