127 lines
3.0 KiB
GraphQL
127 lines
3.0 KiB
GraphQL
#import "../../Fragments/System.graphql"
|
|
|
|
#import "../../Fragments/Blocks/Accordion.graphql"
|
|
#import "../../Fragments/Blocks/CardsGrid.graphql"
|
|
#import "../../Fragments/Blocks/Content.graphql"
|
|
#import "../../Fragments/Blocks/DynamicContent.graphql"
|
|
#import "../../Fragments/Blocks/Shortcuts.graphql"
|
|
#import "../../Fragments/Blocks/Table.graphql"
|
|
#import "../../Fragments/Blocks/TextCols.graphql"
|
|
#import "../../Fragments/Blocks/UspGrid.graphql"
|
|
|
|
#import "../../Fragments/ContentPage/NavigationLinks.graphql"
|
|
|
|
#import "../../Fragments/Sidebar/Content.graphql"
|
|
#import "../../Fragments/Sidebar/DynamicContent.graphql"
|
|
#import "../../Fragments/Sidebar/JoinLoyaltyContact.graphql"
|
|
|
|
query GetContentPage($locale: String!, $uid: String!) {
|
|
content_page(uid: $uid, locale: $locale) {
|
|
hero_image
|
|
title
|
|
header {
|
|
heading
|
|
preamble
|
|
...NavigationLinks
|
|
}
|
|
blocks {
|
|
__typename
|
|
...CardsGrid_ContentPage
|
|
...Content_ContentPage
|
|
...DynamicContent_ContentPage
|
|
...Shortcuts_ContentPage
|
|
...Table_ContentPage
|
|
...TextCols_ContentPage
|
|
...UspGrid_ContentPage
|
|
...Accordion_ContentPage
|
|
}
|
|
sidebar {
|
|
__typename
|
|
...ContentSidebar_ContentPage
|
|
...DynamicContentSidebar_ContentPage
|
|
...JoinLoyaltyContactSidebar_ContentPage
|
|
}
|
|
system {
|
|
...System
|
|
created_at
|
|
updated_at
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetContentPageBlocks($locale: String!, $uid: String!) {
|
|
content_page(uid: $uid, locale: $locale) {
|
|
blocks {
|
|
__typename
|
|
...CardsGrid_ContentPage
|
|
...Content_ContentPage
|
|
...DynamicContent_ContentPage
|
|
...Shortcuts_ContentPage
|
|
...Table_ContentPage
|
|
...TextCols_ContentPage
|
|
...UspGrid_ContentPage
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetContentPageRefs($locale: String!, $uid: String!) {
|
|
content_page(locale: $locale, uid: $uid) {
|
|
header {
|
|
navigation_links {
|
|
linkConnection {
|
|
edges {
|
|
node {
|
|
__typename
|
|
...ContentPageRef
|
|
...HotelPageRef
|
|
...LoyaltyPageRef
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
blocks {
|
|
__typename
|
|
...Accordion_ContentPageRefs
|
|
...CardsGrid_ContentPageRefs
|
|
...Content_ContentPageRefs
|
|
...DynamicContent_ContentPageRefs
|
|
...Shortcuts_ContentPageRefs
|
|
...TextCols_ContentPageRef
|
|
...UspGrid_ContentPageRefs
|
|
}
|
|
sidebar {
|
|
__typename
|
|
...ContentSidebar_ContentPageRefs
|
|
...JoinLoyaltyContactSidebar_ContentPageRefs
|
|
}
|
|
system {
|
|
...System
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetDaDeEnUrlsContentPage($uid: String!) {
|
|
de: content_page(locale: "de", uid: $uid) {
|
|
url
|
|
}
|
|
en: content_page(locale: "en", uid: $uid) {
|
|
url
|
|
}
|
|
da: content_page(locale: "da", uid: $uid) {
|
|
url
|
|
}
|
|
}
|
|
|
|
query GetFiNoSvUrlsContentPage($uid: String!) {
|
|
fi: content_page(locale: "fi", uid: $uid) {
|
|
url
|
|
}
|
|
no: content_page(locale: "no", uid: $uid) {
|
|
url
|
|
}
|
|
sv: content_page(locale: "sv", uid: $uid) {
|
|
url
|
|
}
|
|
}
|