Feat/SW-2272 campaign cards block
Approved-by: Matilda Landström
This commit is contained in:
@@ -91,3 +91,36 @@ fragment CarouselCards_StartPageRefs on StartPageBlocksCarouselCards {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
fragment CarouselCards_CampaignPage on CampaignPageBlocksCarouselCards {
|
||||
carousel_cards {
|
||||
heading
|
||||
enable_filters
|
||||
card_groups {
|
||||
filter_label
|
||||
filter_identifier
|
||||
cardConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentCardBlock
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment CarouselCards_CampaignPageRefs on CampaignPageBlocksCarouselCards {
|
||||
carousel_cards {
|
||||
card_groups {
|
||||
cardConnection {
|
||||
edges {
|
||||
node {
|
||||
...ContentCardBlockRef
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#import "../../Fragments/System.graphql"
|
||||
#import "../../Fragments/Blocks/Essentials.graphql"
|
||||
#import "../../Fragments/Blocks/CarouselCards.graphql"
|
||||
|
||||
query GetCampaignPage($locale: String!, $uid: String!) {
|
||||
campaign_page(uid: $uid, locale: $locale) {
|
||||
@@ -15,6 +16,7 @@ query GetCampaignPage($locale: String!, $uid: String!) {
|
||||
blocks {
|
||||
__typename
|
||||
...Essentials_CampaignPage
|
||||
...CarouselCards_CampaignPage
|
||||
}
|
||||
system {
|
||||
...System
|
||||
@@ -29,6 +31,10 @@ query GetCampaignPage($locale: String!, $uid: String!) {
|
||||
|
||||
query GetCampaignPageRefs($locale: String!, $uid: String!) {
|
||||
campaign_page(locale: $locale, uid: $uid) {
|
||||
blocks {
|
||||
__typename
|
||||
...CarouselCards_CampaignPageRefs
|
||||
}
|
||||
system {
|
||||
...System
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user