decaporg / decaporg/decap-cms

Allow list block with fields

Open
#7,322 0 comments 0 reactions 0 assignees View on GitHub
type: feature
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

It'd be great to allow an empty object, so that blocks that don't require an input are still able to be added (for section-drive content management).

```
label: 'Blocks'
name: 'blocks'
widget: 'list'
types:
- label: 'Hero'
name: 'hero'
widget: object
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Sidebar Text', name: 'sidebar', widget: 'string', required: false }
- { label: 'Show Simplified Suffix', name: 'simplified', widget: 'boolean', required: false }
- label: 'Insights'
name: 'insights'
widget: object
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.