Newer Version Available

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

Pages and Components in LWR Templates

The Build Your Own (LWR) and the Microsite (LWR) templates in Experience Cloud provide only the most essential out-of-the-box pages and components.

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.

With LWR templates, the startURL query parameter is propagated for all login and page redirects. Also, autofill is enabled for login input fields and password manager.

Tip

When you customize a login page or any page that includes fields with sensitive or confidential information with Experience Builder, we recommend that you use only standard components built by Salesforce or components that you built, customized, or vetted. Use of third-party components and code libraries on a page that includes fields with sensitive or confidential information can increase your risk for security vulnerabilities.

Warning

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.