Skip to content

How is metadataFields supposed to work? #170

@rijk

Description

@rijk

Apologies as this is not a bug, but a question. I've read the docs, the special doc page on this, and looked through the source code, but I cannot figure out how metadataFields is supposed to work.

I've added it to my config:

documentInternationalization({
  supportedLanguages: [
    {id: 'nl', title: 'Nederlands'},
    {id: 'en', title: 'English'},
  ],
  schemaTypes: ['home', 'settings', 'page'],
  metadataFields: [defineField({name: 'slug', type: 'slug'})],
}),

But it doesn't seem to do anything. I still get the Slug is already in use error on page translations:

image

Am I misunderstanding how to use this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions