Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support request: How to configure a widget for a yml list #2514

Closed
chrfritsch opened this issue Aug 1, 2019 · 1 comment
Closed

Support request: How to configure a widget for a yml list #2514

chrfritsch opened this issue Aug 1, 2019 · 1 comment

Comments

@chrfritsch
Copy link
Contributor

My yml datastructure is like this:

- description: Description 1
  date: 2019-10-13T15:04:10.000Z 
- description: Description 2
  date: 2020-03-01T15:04:10.000Z 

Now I want to configure my widget in netlify cms for it. I tried something like

  - name: settings
    label: Settings
    editor:
      preview: false
    delete: false
    files:
      - file: src/data/events.yml
        label: Events
        name: events
        fields:
          - label: Event
            name: event_items
            widget: list
            fields:
              - {label: Date, name: date, widget: datetime}
              - {label: Description, name: description, widget: string}

This doesn't work because it always adds an event_items key at the top and I didn't manage it to get rid of it.
Hopefully, some can help me.

@erquhart
Copy link
Contributor

Hey @chrfritsch - I know this is super simple, but it isn't supported yet - follow #1877 for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants