Feat/SW-2272 campaign cards block

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-06-12 06:01:23 +00:00
parent 6bf7462ac7
commit e2a4fa6c07
7 changed files with 104 additions and 4 deletions

View File

@@ -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
}
}
}
}
}
}

View File

@@ -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
}