getContent

Retrieves published content from an enhanced CMS workspace or non-enhanced CMS workspace for an enhanced LWR site in Experience Cloud. This wire adapter can also retrieve published content from a non-enhanced CMS workspace for a non-enhanced LWR site.

To get Salesforce CMS content from an enhanced or non-enhanced CMS workspace for an Aura site, use the lightning/cmsDeliveryApi module’s listContent wire adapter instead.

With channelId parameter:

With siteId parameter:

getContent uses this CMS Delivery Content Resource.

Parameter NameTypeDescriptionRequired?
channelOrSiteIdStringThe ID for the enhanced LWR site on which you want to use CMS content.Yes
contentKeyOrIdStringThe content key or content ID for the CMS content that you want to use on your enhanced LWR site.Yes