Replies: 3 comments 3 replies
-
Did you test the config with Static CMS? I’ve noticed that the field name is missing: {
name: "data-categories",
label: "Kategorien und Zuordnungen",
file: "data/categories.yml",
fields: [
{
name: "blog",
label: "Aktuelles",
label_singular: "Kategorie",
widget: "list",
required: true,
collapsed: true,
field: {
name: "category", // Need this even though it won’t be included in the data output
label: "Kategorie",
widget: "string",
required: true,
},
},
]
} And I believe the relation field config would look like this: {
name: "categories",
label: "Kategorien",
widget: "relation",
collection: "settings",
file: "data-categories",
value_field: "blog.*.category", // Add field name
search_fields: ["blog.*.category"], // Ditto
display_fields: ["blog.*.category"], // Ditto
multiple: true,
required: true,
options_length: 10000,
} Not sure if this works with Sveltia CMS. I’ll test it and fix if it doesn’t. The single field list widget ( |
Beta Was this translation helpful? Give feedback.
-
Fixed in v0.76.1. It should work after modifying your config:
|
Beta Was this translation helpful? Give feedback.
-
With v0.77.0, A simple list field (no {
name: "categories",
label: "Kategorien",
widget: "relation",
collection: "settings",
file: "data-categories",
value_field: "blog.*",
search_fields: ["blog.*"],
display_fields: ["blog.*"],
multiple: true,
required: true,
options_length: 10000,
} {
name: "data-categories",
label: "Kategorien und Zuordnungen",
file: "data/categories.yml",
fields: [
{
name: "blog",
label: "Aktuelles",
label_singular: "Kategorie",
widget: "list",
required: true,
// No `field` required
},
]
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm migrating from Static CMS and I can't get one of my relation widgets to work.
Widget:
File in file collection:
File content:
What could I do to make it work? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions