Skip to content

Zola Static Site Generator: Content does not load in admin view #7324

Closed Answered by dcrck
dcrck asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, turns out I was referencing the wrong page (oops), it should be content/contact/_index.md. Also, I need to use the object widget for nested fields.

This works:

- name: "pages"
    label: "Pages"
    format: toml-frontmatter
    files:
      - name: "contact"
        label: "Contact Page"
        file: "/content/contact/_index.md"
        fields:
          - name: "extra"
            label: "Editable fields"
            widget: object
            fields:
              - {label: "Form Title", name: "form_title", widget: string}
              - {label: "Form Description", name: "form_description", widget: string}
              - {label: "Form Email Input Label", name: "form_email_input…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dcrck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant