Last active
December 23, 2021 10:25
-
-
Save keithgreer/d6a86ef5cb1a7b0846d392ef2f8e293b to your computer and use it in GitHub Desktop.
First we grab and display the variables from the Settings section of the JSON - https://keithgreer.dev/setting-up-a-multipurpose-cmsed-liquid-homepage-section-for-shopify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Video & Testimonial", | |
"max_blocks": 5, | |
"settings": [ | |
{ | |
"id": "video_title", | |
"type": "text", | |
"label": "Heading", | |
"default": "Learn 'How to' with our video" | |
}, | |
{ | |
"id": "video_sub", | |
"type": "text", | |
"label": "Heading", | |
"default": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed incididunt. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod" | |
}, | |
{ | |
"id": "video_code", | |
"type": "text", | |
"label": "YouTube Code", | |
"default": "GF60Iuh643I" | |
}, | |
{ | |
"id": "video_image", | |
"type": "image_picker", | |
"label": "Background Image" | |
} | |
], | |
"blocks": [ | |
{ | |
"type": "testimonial", | |
"name": "Testimonial Option", | |
"settings": [ | |
{ | |
"id": "testimonial_subject", | |
"type": "text", | |
"label": "Testimonial Subject" | |
}, | |
{ | |
"type": "image_picker", | |
"id": "image", | |
"label": "Image" | |
}, | |
{ | |
"id": "testimonial_desc", | |
"type": "textarea", | |
"label": "Testimonial Description" | |
}, | |
{ | |
"id": "testimonial_author", | |
"type": "text", | |
"label": "Testimonial Author" | |
} | |
] | |
} | |
], | |
"presets": [ | |
{ | |
"name": "Video and Testimonial", | |
"category": "Testimonial", | |
"settings": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment