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 Name | Type | Description | Required? |
---|---|---|---|
channelOrSiteId | String | The ID for the enhanced LWR site on which you want to use CMS content. | |
contentKeyOrId | String | The content key or content ID for the CMS content that you want to use on your enhanced LWR site. |
data
—Managed Content Delivery Documenterror
—FetchResponse