NetlifyCMS - How do you reference Nested Front Matter Values

Hi Guys,

How do you reference a nested Front Matter value. So here is the style of my front matter

  heading: "The Kruger-Dunning effect"
  summary: "Testing"

I want to show this in the config.yml file of the NetlifyCMS. Here is my sample config.yml file fields:

  • { label: ‘Title’, name: ‘title’, widget: ‘string’ }
    • { label: ‘Publish Date’, name: ‘date’, widget: ‘datetime’ }
    • { label: ‘Description’, name: ‘description’, widget: ‘string’ }
    • { label: ‘Body’, name: ‘body’, widget: ‘markdown’ }
    • { label: ‘Header’, name: ‘header’, widget: ‘string’}

HOw do I get .Params.Header.heading? How do I reference the values under Header?

A bookmark I have on the topic (Not tested so far though)

Using the widget object and outlining the fields below that works.

- label: "Header"
        name: "Header"
        collapse: true
        widget: "object"
          - {label: 'Heading', name: 'heading', widget: 'string', required: false}

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.