Skip to content

Allow list block with fields #7322

@ryangittings

Description

@ryangittings

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions