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:
- 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" }