The layout of grouping widgets

Hi all. Please help with visual grouping widgets. Like widget object, but without NAME properties.

I have that list

      - {label: "Title", name: "title", widget: "string"}
      - {label: "Keywords", name: "keywords", widget: "string", required: false}
      - {label: "Description", name: "description", widget: "string", required: false}
      - {label: "Weight", name: "weight", widget: "number", value_type: "int", default: 10, step: 10, min: 1, max: 1000, required: false }
      - {label: "Type", name: "type", widget: "select", default: "docs", options: ["docs"], allow_add: false, required: false}
      - {label: "Body", name: "body", widget: "markdown", required: false}

but, i have do it

  - {label: "Title", name: "title", widget: "string"}
  - label: "Ext props"
    collapsed: true
    fields:
      - {label: "Keywords", name: "keywords", widget: "string", required: false}
      - {label: "Description", name: "description", widget: "string", required: false}
      - {label: "Weight", name: "weight", widget: "number", value_type: "int", default: 10, step: 10, min: 1, max: 1000, required: false }
      - {label: "Type", name: "type", widget: "select", default: "docs", options: ["docs"], allow_add: false, required: false}
  - {label: "Body", name: "body", widget: "markdown", required: false}

and get

    ---
    title: aaaa
    weight: 10
    type: docs
    keywords: hhhhhhh
    description: hjgjhkjbgkbjh j j
    ---

but not

    ---
    title: aaaa
    ext.weight: 10
    ext.type: docs
    ext.keywords: hhhhhhh
    ext.description: hjgjhkjbgkbjh j j
    ---

Every widget needs a name property. Because you didn’t set one for the object widget, the object is being ignored.

2 Likes

I just want a widget that only groups the fields visually. But does not add its name as a prefix to the attribute

That’s not supported by the CMS (nor is it valid yaml syntax I believe), unfortunately.

1 Like