Skip to content

collections repeated #2289

@lpluispacheco

Description

@lpluispacheco

Hi,

When i try to see in /admin my collections are displayed with the same name, this is my config

collections:

  • name: "en"
    label: "EN"
    files:
    • name: "header"
      file: "src/intl/en.json"
      label: "Header section"
      fields:

      • { label: Title, name: header-section.title, widget: string }
    • name: "Header Section"
      file: "src/intl/en.json"
      label: "Section One"
      fields:
      - { label: Title, name: section-one.title, widget: string }

    • name: "Header Section"
      file: "src/intl/en.json"
      label: "Section Two"
      fields:
      - { label: Titulo, name: section-two.title, widget: string }

A solution that I've to make is create it separated like this:

collections:

  • name: "header"
    label: "Header"
    files:

    • name: "header"
      file: "src/intl/en.json"
      label: "Header section"
      fields:
      • { label: Title, name: header-section.title, widget: string }
  • name: "sec1"
    label: "Section One"
    files:

    • name: "sec-one"
      file: "src/intl/en.json"
      label: "Sec One"
      fields:
      • { label: Title, name: section-one.title, widget: string }

I'm creating different sections because I'm creating a multi lang page with Gatsby and I need to separate it in sections like: 'EN', 'ES'..

Any ideas?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions