shopify中的settings_data.json和settings_schema.json文件有什么区别,我可以通过两者设置主题设置,但我到底什么时候会使用哪一个?我在下面给出了一个示例,其中显示了Setting_schema.json 文件和Setting_data.json 文件,但我可以理解两者都在管理部分中创建相同的功能。但那有什么区别呢。为什么shopify主题使用两种类型的设置json文件?
/**Here is Setting_schema.json file :**/
[
{
"name": "theme_info",
"theme_name": "Minimal",
"theme_author": "Shopify",
"theme_version": "1.0",
"theme_documentation_url": "https:\/\/docs.shopify.com\/manual\/more\/official-shopify-themes\/minimal",
"theme_support_url": "https:\/\/support.shopify.com\/"
},
{
"name": "Layout",
"settings": [
{
"type": "checkbox",
"id": "enable_wide_layout",
"label": "Enable wide layout"
}
]
},
{
"name": "Colors",
"settings": [
{
"type": "header",
"content": "Background"
},
{
"type": "checkbox",
"id": "theme_bg_image",
"label": "Use theme background"
},
{
"type": "image_picker",
"id": "bg_custom",
"label": "Custom image"
},
{
"type": "radio",
"id": "bg_image_display",
"label": "Image display",
"options": [ …Run Code Online (Sandbox Code Playgroud)