Skip to main content

Enhanced CMS has the ability to preview content. However, most of us build custom LWCs using the experience/cmsDeliveryApi getContent module and that only retrieves published content. The LWC I have uses a string property that has the contentKey passed in using a data binding expression {!Item.contentKey}. How should a LWC be built to support content authors to preview content from a CMS workspace while also supporting efficient LWC development? Is there a REST API method that would allow this? 

cc: @David Green @George Abboud @Geno Mathew @* Experience Cloud *

8 respostas
  1. 24 de ago., 16:48

    @Maik Künnemann, the only supported draft-reading API I found is experience/cmsEditorApi, which can read the content currently open in the Enhanced CMS editor, however that API is limited to an LWC running as a lightning__CmsEditorExtension; it cannot power an Experience Builder/site component. CMS has been largely unusable for my clients so we've been using third-party CMSs like Contentful, Contentstack, and Sanity.

0/9000