Skip to content

Introduce itemLabel on fields.relationship #1419

Open
@tordans

Description

@tordans

Right now, the relationship dropdown is displayed as a list of relation ids.

It would be great to be able to customize what is shown there in a way similar to what fields.array has with itemLabel.

Docs: https://keystatic.com/docs/fields/relationship

Example of what it looks like now:

Image

Example: I can fake this today by building the relationship manually and use fields.select

Image

(The width #1298 is a different issue here.)

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

      Participants

      @tordans

      Issue actions

        Introduce `itemLabel` on `fields.relationship` · Issue #1419 · Thinkmill/keystatic