feat(SW-266): Replacing static metadata with data from Contentstack on Loyalty pages and Account Pages
Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#import "../Image.graphql"
|
||||
|
||||
fragment LoyaltyPageMetaData on LoyaltyPage {
|
||||
web {
|
||||
seo_metadata {
|
||||
title
|
||||
description
|
||||
imageConnection {
|
||||
edges {
|
||||
node {
|
||||
...Image
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
#import "../Image.graphql"
|
||||
|
||||
fragment MyPagesMetaData on AccountPage {
|
||||
web {
|
||||
seo_metadata {
|
||||
title
|
||||
description
|
||||
imageConnection {
|
||||
edges {
|
||||
node {
|
||||
...Image
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
breadcrumbs {
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
#import "../Fragments/LoyaltyPage/MetaData.graphql"
|
||||
|
||||
query GetLoyaltyPageMetaData($locale: String!, $url: String!) {
|
||||
all_loyalty_page(locale: $locale, where: { url: $url }) {
|
||||
items {
|
||||
...LoyaltyPageMetaData
|
||||
system {
|
||||
uid
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
#import "../Fragments/MyPages/MetaData.graphql"
|
||||
|
||||
query GetMyPagesMetaData($locale: String!, $url: String!) {
|
||||
all_account_page(locale: $locale, where: { url: $url }) {
|
||||
items {
|
||||
...MyPagesMetaData
|
||||
system {
|
||||
uid
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user