Section
Contact form
1 个模板实例,6 个 section 配置,3 类 block。
真实模板变体
Schema
{
"name": "Contact form",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Heading",
"default": "Contact form"
},
{
"type": "richtext",
"id": "description",
"label": "Description",
"default": "<p>Add a short description for this section</p>"
},
{
"type": "checkbox",
"id": "show_phone_number",
"default": true,
"label": "Show phone number"
},
{
"type": "header",
"content": "Spacing"
},
{
"type": "checkbox",
"id": "disable_top_spacing",
"default": false,
"label": "Remove top spacing"
},
{
"type": "checkbox",
"id": "disable_bottom_spacing",
"default": false,
"label": "Remove bottom spacing"
}
],
"blocks": [
{
"type": "text",
"name": "Text",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Heading",
"default": "Heading"
},
{
"type": "richtext",
"id": "text",
"label": "Content",
"default": "<p>Add your store address or<br/>your store hours</p>"
}
]
},
{
"type": "text_field",
"name": "Text field",
"settings": [
{
"type": "text",
"id": "title",
"label": "Name",
"default": "Custom field"
},
{
"type": "checkbox",
"id": "use_long_text",
"label": "Use long text",
"default": false
},
{
"type": "checkbox",
"id": "is_required",
"label": "Field is required",
"default": false
}
]
},
{
"type": "dropdown_field",
"name": "Dropdown field",
"settings": [
{
"type": "text",
"id": "title",
"label": "Name",
"default": "Custom field"
},
{
"type": "text",
"id": "values",
"label": "Values",
"info": "Separate each value by a comma.",
"default": "value 1, value 2, value 3"
}
]
}
],
"presets": [
{
"name": "Contact form",
"blocks": [
{
"type": "text"
},
{
"type": "text"
}
]
}
]
}