Why the files is creating without file name, just extension?


  • label: “Le nostre birre”
    name: “le-nostre-birre”
    folder: “content/le-nostre-birre”
    create: true
    slug: “{{ title }}”
    fields:
    • {label: “Title”, name: “title”, widget: “string”, required: true}
    • {label: “Slug”, name: “slug”, widget: “string”, required: true}
    • {label: “Date”, name: “date”, widget: “date”}
    • {label: “Subtitle”, name: “subtitle”, widget: “string”, required: false}
    • {label: “Image”, name: “image”, widget: “image”, required: false}
    • {label: “Link”, name: “link”, widget: “string”, required: false}
    • {label: “Link tex”, name: “linkText”, widget: “string”, required: false}
    • label: “Files”
      name: “fileslist”
      create: true
      widget: “list”
      fields:
      • {label: “File”, name: “file”, widget: “file”}
      • {label: “FileName”, name: “filename”, widget: “string”}

I found a solution, just must to add the year month for slug.
slug: “{{year}}-{{month}}-{{day}}_{{slug}}” # filename template, e.g., YYYY-MM-DD-title.md

1 Like