What Are LWR Sites for Experience Cloud?
Lightning Web Components uses core Web Components standards and provides only what’s necessary to perform well in browsers supported by Salesforce. Because it’s built on code that runs natively in browsers, Lightning Web Components is lightweight, efficient, and easy to learn.
Lightning Web Components also includes Apex and User Interface API support, so you can access Salesforce records, SOSL, and more to provide data-rich experiences for your customers. And performance features of LWR templates, such as publish-time freezing and HTTP caching, help you build richer experiences to target B2B and B2C markets.
At a high level, LWR templates:
- Provide custom URL paths, meaning no more /s cluttering up your site’s URL—for example, https://mycustomdomain.com/mypage.
- Enhance developer productivity. Use Salesforce DX and your preferred editor or development tools to create custom components and themes. Build what you want, your way.
- Support the development of reusable Lightning web components and themes that follow modern web standards. Most of the code you write is standard JavaScript and HTML, making the model easy to learn.
Example
Alternatively, let’s say your company is hosting an event, and you need a place to keep all your event information that doesn’t necessarily live with your other content. Enter microsites. Publish your page with all the event information, pull in logos and other content that you created in CMS, and archive the page when the event is over.
Enhanced LWR Sites
The enhanced sites and content platform is a flexible new system that brings together Salesforce CMS and LWR sites. From Winter ’23, this platform is automatically enabled, so all new LWR sites that you create are hosted on the platform. Similarly, any enhanced CMS workspaces that you create also run on the redesigned system.
The new platform offers a range of additional features that are available only to enhanced LWR sites and enhanced CMS workspaces. For example, enhanced LWR sites can employ partial deployment so you can choose which site elements are ready to go live. Expression-based visibility controls when and to whom components in your enhanced LWR sites appear. With site content search, your users can find content contained in Rich Content Editor and HTML Editor components. And because everything runs together on our consolidated platform, site search results can include content that you share from an enhanced CMS workspace.
See What Is the Enhanced Sites and Content Platform in Salesforce Help.