Headless Server Developer Manual / Version 2406.1
Table Of Contents
Pages within the eCommerce system can be augmented with CMExternalPage
content objects
(see Section 6.2.3.6, “Adding Content to Other Pages” in Studio User Manual).
The commerce
root object offers a field externalPage
which allows querying the
CMS page content given a page ID and a site ID. The following example query retrieves the header
and main
placements from the CMExternalPage
associated with the about-us
page:
{ commerce { externalPage(externalId: "about-us", siteId: "sfra-en-gb") { externalId name grid { placements(names: ["header", "main"]) { name items { name type } } } } } }