2021-03-22 15:59:05 +01:00
|
|
|
###############################################################
|
|
|
|
# Content Blöcke
|
|
|
|
###############################################################
|
|
|
|
|
|
|
|
# Name/URL-Anteil der Kollektion
|
|
|
|
name: content
|
|
|
|
uploadPath: ../media/content
|
|
|
|
|
|
|
|
# Metaangaben zur Kollektion welche in der Admin-UI verwendet werden können
|
|
|
|
meta:
|
|
|
|
# Navigationseintrag in der Admin-UI
|
2022-03-18 21:33:01 +01:00
|
|
|
label: { de: "Seiteninhalt", en: "Page Content" }
|
2021-03-22 15:59:05 +01:00
|
|
|
# Icon (Material UI) für den Navigationseintrag
|
|
|
|
muiIcon: web
|
|
|
|
# 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:
|
|
|
|
# Mobile Darstellung
|
|
|
|
- type: simpleList
|
|
|
|
mediaQuery: "(max-width:599px)"
|
|
|
|
primaryText: path
|
2022-03-20 15:02:40 +01:00
|
|
|
columns:
|
|
|
|
- path
|
2021-03-22 15:59:05 +01:00
|
|
|
# Desktop
|
|
|
|
- type: table
|
|
|
|
mediaQuery: "(min-width:600px)"
|
|
|
|
columns:
|
|
|
|
- path
|
|
|
|
|
|
|
|
imageFilter:
|
|
|
|
xs:
|
|
|
|
- fit: true
|
|
|
|
height: 90
|
|
|
|
width: 90
|
2022-03-18 21:33:01 +01:00
|
|
|
resampling: "lancos"
|
2021-03-22 15:59:05 +01:00
|
|
|
quality: 60
|
|
|
|
s:
|
|
|
|
- fit: true
|
|
|
|
height: 300
|
|
|
|
width: 300
|
2022-03-18 21:33:01 +01:00
|
|
|
resampling: "lancos"
|
2021-03-22 15:59:05 +01:00
|
|
|
quality: 60
|
|
|
|
m:
|
|
|
|
- fit: true
|
|
|
|
height: 600
|
|
|
|
width: 600
|
2022-03-18 21:33:01 +01:00
|
|
|
resampling: "lancos"
|
2021-03-22 15:59:05 +01:00
|
|
|
quality: 60
|
|
|
|
l:
|
|
|
|
- fit: true
|
|
|
|
height: 1200
|
|
|
|
width: 1200
|
2022-03-18 21:33:01 +01:00
|
|
|
resampling: "lancos"
|
2021-03-22 15:59:05 +01:00
|
|
|
quality: 60
|
|
|
|
xl:
|
|
|
|
- fit: true
|
|
|
|
height: 2000
|
|
|
|
width: 2000
|
2022-03-18 21:33:01 +01:00
|
|
|
resampling: "lancos"
|
2021-03-22 15:59:05 +01:00
|
|
|
quality: 60
|
|
|
|
|
|
|
|
# Zugriff auf diese Kollektion
|
|
|
|
permissions:
|
|
|
|
# öffentlicher Zugriff
|
|
|
|
public:
|
|
|
|
methods:
|
|
|
|
# Liste und Einzeleinträge lesen
|
|
|
|
get: true
|
|
|
|
# neuen Eintrag anlegen
|
|
|
|
post: false
|
|
|
|
# Eintrag editieren
|
|
|
|
put: false
|
|
|
|
# Eintrag löschen
|
|
|
|
delete: false
|
|
|
|
# zum Projekt zugeordneter Benutzer ohne Zusatzberechtigungen
|
|
|
|
user:
|
|
|
|
methods:
|
|
|
|
get: true
|
|
|
|
post: true
|
|
|
|
put: true
|
|
|
|
delete: true
|
|
|
|
|
|
|
|
hooks:
|
|
|
|
post:
|
|
|
|
return:
|
|
|
|
type: javascript
|
|
|
|
file: hooks/content/post_return.js
|
|
|
|
put:
|
|
|
|
return:
|
|
|
|
type: javascript
|
|
|
|
file: hooks/content/put_return.js
|
|
|
|
delete:
|
|
|
|
return:
|
|
|
|
type: javascript
|
|
|
|
file: hooks/content/delete_return.js
|
|
|
|
|
|
|
|
# Feldliste der Kollektion
|
|
|
|
fields:
|
2022-05-13 15:06:32 +02:00
|
|
|
- name: name
|
|
|
|
type: string
|
|
|
|
meta:
|
|
|
|
label: { de: "Name der Page (optional)", en: "Page Name (optional)" }
|
2021-03-22 15:59:05 +01:00
|
|
|
- name: path
|
|
|
|
type: string
|
2022-05-13 15:06:32 +02:00
|
|
|
index: [single, unique]
|
2021-03-22 15:59:05 +01:00
|
|
|
meta:
|
|
|
|
label: { de: "Pfad", en: "Path" }
|
|
|
|
- name: blocks
|
|
|
|
type: object[]
|
|
|
|
meta:
|
2022-03-20 15:02:40 +01:00
|
|
|
label: { de: "Artikel dieser Seite", en: "Page Articles" }
|
2021-03-22 15:59:05 +01:00
|
|
|
subFields:
|
2022-05-13 15:06:32 +02:00
|
|
|
- !include fields/_article.yml
|