Skip to content

Nested fields in Hugo data files not working? #6865

Answered by martinjagodic
1xn asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of the dot notation, you have to use the object widget: https://decapcms.org/docs/widgets/object/

fields: [
  {name: company, widget: object, fields: [
    {name: enable, widget: boolean},
    {name: title, widget: string},
    {name: text, widget: text},
  ]},
  {name: partnerLogos, widget: list, fields: [
    {name: logo, widget: image},
    {name: link, widget: string},
  ]}
]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@1xn
Comment options

Answer selected by 1xn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants