feat(WEB-93): add Header to CMS and render it in Next
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#import "./PageLinks.graphql"
|
||||
|
||||
fragment Breadcrumbs on CurrentBlocksPage {
|
||||
breadcrumbs {
|
||||
title
|
||||
@@ -8,8 +10,7 @@ fragment Breadcrumbs on CurrentBlocksPage {
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
title
|
||||
url
|
||||
...CurrentBlocksPageLink
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
#import "../Image.graphql"
|
||||
|
||||
fragment Logo on Footer {
|
||||
logoConnection {
|
||||
edges {
|
||||
node {
|
||||
title
|
||||
url
|
||||
...Image
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
fragment CurrentBlocksPageLink on CurrentBlocksPage {
|
||||
system {
|
||||
uid
|
||||
locale
|
||||
uid
|
||||
}
|
||||
title
|
||||
url
|
||||
|
||||
32
lib/graphql/Query/Header.graphql
Normal file
32
lib/graphql/Query/Header.graphql
Normal file
@@ -0,0 +1,32 @@
|
||||
#import "../Fragments/Image.graphql"
|
||||
|
||||
query GetHeader($locale: String!) {
|
||||
all_header(limit: 1, locale: $locale) {
|
||||
items {
|
||||
frontpage_link_text
|
||||
logoConnection {
|
||||
edges {
|
||||
node {
|
||||
...Image
|
||||
}
|
||||
}
|
||||
}
|
||||
menu {
|
||||
links {
|
||||
href
|
||||
title
|
||||
}
|
||||
}
|
||||
top_menu {
|
||||
links {
|
||||
link {
|
||||
href
|
||||
title
|
||||
}
|
||||
show_on_mobile
|
||||
sort_order_mobile
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user