site
The store's settings: its header and footer menus, the selling points in the header bar and the SEO templates. Null where the store has no site entry.
Arguments
| Argument | Type | Description |
|---|---|---|
version | ContentVersionType | |
previewId | String |
Returns
| Field | Type | Description |
|---|---|---|
id | ID! | Unique identifier for the settings. |
headerNavigation | Navigation | The header's menu; null where the editor picked none or it is not published. |
secondaryNavigation | Navigation | The header's secondary menu, such as service or business; null where the editor picked none or it is not published. |
footerNavigation | Navigation | The footer's menu; null where the editor picked none or it is not published. |
usps | [Usp!]! | The selling points in the header bar, at most four. |
socials | [SocialLink!]! | The store's social profiles, in the editor's order. |
paymentMethods | [PaymentBrandType!]! | The ways to pay the store shows, in the editor's order. |
trustRating | TrustRating | The store's review rating; null unless the editor set its score, best score and count. |
catalogSeoTitle | String | The SEO title of a catalog page that sets none, such as {category} | {count} products. |
catalogSeoDescription | String | The SEO description of a catalog page that sets none. |
articleSeoTitle | String | The SEO title of an article that sets none, such as {title} | {section}. |
contentSeoTitle | String | The SEO title of a content page that sets none, such as {heading} | Evolve. |
topicPathSegment | String | The path segment between a section and a topic, in the current locale, as in /blog/topic/tennis; null where the editor set none. |
Example
query Site($version: ContentVersionType, $previewId: String) { site(version: $version, previewId: $previewId) { id headerNavigation { id } secondaryNavigation { id } footerNavigation { id } usps { id title description icon } socials { platform url } paymentMethods trustRating { score maxScore count url } catalogSeoTitle catalogSeoDescription articleSeoTitle contentSeoTitle topicPathSegment }}{ "version": "DRAFT", "previewId": "Example"}{ "data": { "site": { "id": "id-1", "headerNavigation": { "id": "id-1" }, "secondaryNavigation": { "id": "id-1" }, "footerNavigation": { "id": "id-1" }, "usps": [ { "id": "id-1", "title": "Example", "description": "Example", "icon": "TRUCK" } ], "socials": [ { "platform": "FACEBOOK", "url": "https://example.com/" } ], "paymentMethods": [ "IDEAL" ], "trustRating": { "score": 9.95, "maxScore": 9.95, "count": 1, "url": "https://example.com/" }, "catalogSeoTitle": "Example", "catalogSeoDescription": "Example", "articleSeoTitle": "Example", "contentSeoTitle": "Example", "topicPathSegment": "/example" } }}The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.
Used by
The storefront packages that send it, in these GraphQL documents:
- @evolve-storefront/layout:
LayoutGetSite

