forked from cms/tibi-svelte-starter
92 lines
2.2 KiB
YAML
92 lines
2.2 KiB
YAML
|
###############################################################
|
||
|
# Media Library
|
||
|
###############################################################
|
||
|
|
||
|
# Name/URL-Anteil der Kollektion
|
||
|
name: media-library
|
||
|
uploadPath: ../media/media-library
|
||
|
|
||
|
# Metaangaben zur Kollektion welche in der Admin-UI verwendet werden können
|
||
|
meta:
|
||
|
# Navigationseintrag in der Admin-UI
|
||
|
label: { de: "Medien", en: "Media Library" }
|
||
|
# Icon (Material UI) für den Navigationseintrag
|
||
|
muiIcon: file-document-multiple
|
||
|
# Identifizierung eines Eintrags für z.B. Select-Boxen in der Admin-UI
|
||
|
rowIdentTpl: { twig: "{{ path }}" }
|
||
|
# Standardsortierung der Liste
|
||
|
defaultSort: { field: "path", order: "ASC" }
|
||
|
# Admin-Backend Ansichten
|
||
|
defaultImageFilter: s
|
||
|
views:
|
||
|
- type: mediaLibrary
|
||
|
mediaQuery: "(min-width:0px)"
|
||
|
columns:
|
||
|
- file
|
||
|
- title
|
||
|
|
||
|
imageFilter:
|
||
|
xs:
|
||
|
- fit: true
|
||
|
height: 90
|
||
|
width: 90
|
||
|
resampling: lanczos
|
||
|
quality: 60
|
||
|
s:
|
||
|
- fit: true
|
||
|
height: 300
|
||
|
width: 300
|
||
|
resampling: lanczos
|
||
|
quality: 60
|
||
|
m:
|
||
|
- fit: true
|
||
|
height: 600
|
||
|
width: 600
|
||
|
resampling: lanczos
|
||
|
quality: 60
|
||
|
l:
|
||
|
- fit: true
|
||
|
height: 1200
|
||
|
width: 1200
|
||
|
resampling: lanczos
|
||
|
quality: 60
|
||
|
xl:
|
||
|
- fit: true
|
||
|
height: 2000
|
||
|
width: 2000
|
||
|
resampling: lanczos
|
||
|
quality: 60
|
||
|
|
||
|
permissions:
|
||
|
public:
|
||
|
methods:
|
||
|
get: true
|
||
|
post: false
|
||
|
put: false
|
||
|
delete: false
|
||
|
user:
|
||
|
methods:
|
||
|
get: true
|
||
|
post: false
|
||
|
put: false
|
||
|
delete: false
|
||
|
# token als Zusatzsicherung gegen Spam, mehr siehe Hook
|
||
|
"token:${PUBLIC_TOKEN}":
|
||
|
methods:
|
||
|
get: false
|
||
|
post: false
|
||
|
put: false
|
||
|
delete: false
|
||
|
|
||
|
# 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" }
|