Skip to content

Commit

Permalink
#36 Added content types for image highlight section on singular produ…
Browse files Browse the repository at this point in the history
…ct page.
  • Loading branch information
Viviana committed Apr 7, 2021
1 parent 1e9cc1b commit 9e4534d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pages/singular-product.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ export const query = graphql`
}
product_title
product_type
image_highlight_group {
highlighted_image {
dimensions {
height
width
}
url
}
image_highlight_description
}
image_highlight_heading
}
}
}
Expand Down
30 changes: 30 additions & 0 deletions src/schemas/product.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,35 @@
"label" : "Button Destination"
}
}
},
"Image Highlight Section": {
"image_highlight_heading": {
"type": "Text",
"config": {
"label": "Image Highlight Heading"
}
},
"image_highlight_group": {
"type": "Group",
"config": {
"fields": {
"highlighted_image": {
"type": "Image",
"config": {
"constraint": {},
"thumbnails": [],
"label": "Highlighted Image"
}
},
"image_highlight_description": {
"type": "Text",
"config": {
"label": "Image Highlight Description"
}
}
},
"label": "Image Highlight Group"
}
}
}
}

0 comments on commit 9e4534d

Please sign in to comment.