Collection für MediaLibrary eingefügt (noch nicht in Production)

This commit is contained in:
Mario Linz 2022-05-09 14:17:14 +02:00
parent 10720ac6ff
commit fba9830368

View File

@ -24,37 +24,49 @@ meta:
columns: columns:
- file - file
- title - title
- tags
- tags2
list:
columns:
- file
- title
tile:
width: 200px
height: auto
grid:
- { source: file }
- { source: title, width: 50%, label: "Titel" }
imageFilter: imageFilter:
xs: xs:
- fit: true - fit: true
height: 90 height: 90
width: 90 width: 90
resampling: lanczos resampling: lancos
quality: 60 quality: 60
s: s:
- fit: true - fit: true
height: 300 height: 300
width: 300 width: 300
resampling: lanczos resampling: lancos
quality: 60 quality: 60
m: m:
- fit: true - fit: true
height: 600 height: 600
width: 600 width: 600
resampling: lanczos resampling: lancos
quality: 60 quality: 60
l: l:
- fit: true - fit: true
height: 1200 height: 1200
width: 1200 width: 1200
resampling: lanczos resampling: lancos
quality: 60 quality: 60
xl: xl:
- fit: true - fit: true
height: 2000 height: 2000
width: 2000 width: 2000
resampling: lanczos resampling: lancos
quality: 60 quality: 60
permissions: permissions:
@ -80,12 +92,46 @@ permissions:
# Feldliste der Kollektion # Feldliste der Kollektion
fields: fields:
- name: file
type: file
meta:
widget: mediaLibraryFile
label: { de: "Datei", en: "File" }
- name: title - name: title
type: string type: string
meta: meta:
label: { de: "Titel des Dokuments/Bild", en: "Document/Image Title" } 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" }