Skip to content

Entry disappears when the title is not a text field #358

@cloetensbrecht

Description

@cloetensbrecht

In this example we would like to use a selected project as the title of the entry:

{
  title: alinea.link.entry("Project", {
    max: 1
  }),
  path: alinea.path("Path", {
    hidden: true,
  })
}

Problems with this configuration:

  • The 'create new` modal is not showing the 'Project link selector' but it displays a default text input
  • Once added a title within the modal, the entry is added. But when we select the correct project and save it, the entry disappears

A workaround for now is to add the project as a second field. But this is not the desired goal as the user need to add the project twice now:

{
  title: alinea.text("Project"),
  project: alinea.link.entry("Project", {
    max: 1
  }),
  path: alinea.path("Path", {
    hidden: true,
  })
}

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