Add block.json file support + fields config.

This commit is contained in:
2022-09-04 10:29:16 +03:00
parent 33dbe48a2c
commit 190800cc80
6 changed files with 308 additions and 3 deletions
+34
View File
@@ -0,0 +1,34 @@
{
"name": "<%= blockGroupName %>/<%= blockFilename %>",
"version": "1.0.0",
"title": "<%= title %>",
"categories": [],
"icon": "shortcode",
"preview_image": "",
"field_groups": [
{
"name": "content",
"label": "Content",
"fields": {
"title": {
"type": "text",
"label": "Title"
},
"content": {
"type": "wysiwyg",
"label": "Content"
},
"cta": {
"type": "link",
"label": "CTA"
}
}
},
{
"name": "styling",
"label": "Styling",
"fields": {
}
}
]
}