add categories relation
All checks were successful
schuelerzeitung-prod / prod-build (push) Successful in 6s
schuelerzeitung-prod / test-build (push) Successful in 1s

This commit is contained in:
Denys Konovalov 2024-01-13 18:36:33 +01:00
parent 168a308c54
commit 126395746e
Signed by: Denys Konovalov
GPG Key ID: 0037E1B0E33BD2C9
2 changed files with 10 additions and 5 deletions

@ -5,8 +5,7 @@ date: 2023-02-16
description: ""
image: /media/buchempfehlung-2023-01.webp
tags:
- buchempfehlung
- "2023"
- ""
categories:
- Buchrezension
type: post

@ -58,10 +58,16 @@ const PostCollection = {
},
{
name: "categories",
label: "Kategorien",
widget: "list",
delimiter: ",",
label: "Kategorie(n)",
hint: "Kategorien müssen vorher im separeten Bereich erstellt werden.",
widget: "relation",
collection: "categories",
value_field: "{{title}}",
search_fields: ["title"],
display_fields: ["{{title}}"],
multiple: true,
required: false,
options_length: 10000,
},
{
name: "type",