From fba98303688dbc16f3d12848fcff78d337c0af13 Mon Sep 17 00:00:00 2001 From: Mario Linz Date: Mon, 9 May 2022 14:17:14 +0200 Subject: [PATCH] =?UTF-8?q?Collection=20f=C3=BCr=20MediaLibrary=20eingef?= =?UTF-8?q?=C3=BCgt=20(noch=20nicht=20in=20Production)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/collections/mediaLibrary.yml | 66 +++++++++++++++++++++++++++----- 1 file changed, 56 insertions(+), 10 deletions(-) diff --git a/api/collections/mediaLibrary.yml b/api/collections/mediaLibrary.yml index ecdc780..b7920ec 100644 --- a/api/collections/mediaLibrary.yml +++ b/api/collections/mediaLibrary.yml @@ -24,37 +24,49 @@ meta: columns: - file - title + - tags + - tags2 + list: + columns: + - file + - title + tile: + width: 200px + height: auto + grid: + - { source: file } + - { source: title, width: 50%, label: "Titel" } imageFilter: xs: - fit: true height: 90 width: 90 - resampling: lanczos + resampling: lancos quality: 60 s: - fit: true height: 300 width: 300 - resampling: lanczos + resampling: lancos quality: 60 m: - fit: true height: 600 width: 600 - resampling: lanczos + resampling: lancos quality: 60 l: - fit: true height: 1200 width: 1200 - resampling: lanczos + resampling: lancos quality: 60 xl: - fit: true height: 2000 width: 2000 - resampling: lanczos + resampling: lancos quality: 60 permissions: @@ -80,12 +92,46 @@ permissions: # Feldliste der Kollektion fields: - - name: file - type: file - meta: - widget: mediaLibraryFile - label: { de: "Datei", en: "File" } - name: title type: string meta: label: { de: "Titel des Dokuments/Bild", en: "Document/Image Title" } + filter: true + - name: tags + type: string[] + meta: + filter: true + widget: chipArray + label: + de: Tags / Labels + en: Tags / Labels + # allowedAddEntry: + # collection: "tags" + autocomplete: true + choices: + endpoint: "tags" + mapping: + id: "id" + name: "name" + params: + count: 1 + sort: "ASC" + query: "" + - name: tags2 + type: string[] + meta: + filter: true + widget: chipArray + label: + de: Tags TEST + en: Tags TEST + autocomplete: true + choices: + - { id: "1", name: "Test 1" } + - { id: "2", name: "Test 2" } + - { id: "3", name: "Test 3" } + - name: file + type: file + meta: + widget: mediaFile + label: { de: "Datei", en: "File" }