@@ -9,7 +9,7 @@ The `cmsPage` and `cmsBlock` endpoints return information about content pages an
9
9
10
10
Return the contents of a CMS page:
11
11
12
- ` cmsPage(id: Int ): CmsPage `
12
+ ` cmsPage(identifier: String ): CmsPage `
13
13
14
14
Return the contents of one or more CMS blocks:
15
15
@@ -19,11 +19,11 @@ Return the contents of one or more CMS blocks:
19
19
20
20
Attribute | Data type | Description
21
21
--- | --- | ---
22
- ` id ` | Int | The ID of a CMS page
22
+ ` id ` | Int | Deprecated. Use ` identifier ` instead.
23
+ ` identifier ` | String | The identifier of a CMS page
23
24
` identifiers ` | [ String] | An array containing a comma-separated list of block identifiers
24
25
25
-
26
- ### CmsPage output attributes
26
+ ### CmsPage output attributes
27
27
28
28
The ` CmsPage ` object can contain the following attributes:
29
29
@@ -38,8 +38,7 @@ Attribute | Data type | Description
38
38
` title ` | String | The name that appears in the breadcrumb trail navigation and in the browser title bar and tab
39
39
` url_key ` |String | The URL key of the CMS page, which is often based on the ` content_heading `
40
40
41
-
42
- ### CmsBlocks output attributes
41
+ ### CmsBlocks output attributes
43
42
44
43
The ` CmsBlocks ` object contains an array of ` items ` , each of which can contain the following attributes:
45
44
@@ -49,18 +48,17 @@ Attribute | Data type | Description
49
48
` identifier ` | String | The CMS block identifier
50
49
` title ` | String | The title assigned to the CMS block
51
50
52
-
53
51
## Example usage
54
52
55
53
### Query a CMS page
56
54
57
55
The following query returns information about the "404 Not Found" CMS page:
58
56
59
- ** Request**
57
+ ** Request**
60
58
61
- ```
59
+ ``` text
62
60
{
63
- cmsPage(id : 1) {
61
+ cmsPage(identifier : 1) {
64
62
url_key
65
63
title
66
64
content
@@ -96,9 +94,9 @@ The following query returns information about the "404 Not Found" CMS page:
96
94
97
95
The following query returns information about the ` login-data ` block:
98
96
99
- ** Request**
97
+ ** Request**
100
98
101
- ```
99
+ ``` text
102
100
{
103
101
cmsBlocks(identifiers: "login-data") {
104
102
items {
0 commit comments