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-05-24 16:44:55 +02:00
|
|
|
label: { de: "Seiten", en: "Pages" }
|
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:
|
2022-05-25 12:10:29 +02:00
|
|
|
- source: path
|
2022-05-30 15:57:11 +02:00
|
|
|
twig: "{{path}}"
|
2022-05-25 12:10:29 +02:00
|
|
|
- source: locale
|
|
|
|
type: flag
|
2021-03-22 15:59:05 +01:00
|
|
|
# Desktop
|
|
|
|
- type: table
|
|
|
|
mediaQuery: "(min-width:600px)"
|
|
|
|
columns:
|
2022-05-25 12:10:29 +02:00
|
|
|
- source: path
|
2022-05-30 15:57:11 +02:00
|
|
|
twig: "{{path}}"
|
2022-05-25 12:10:29 +02:00
|
|
|
- source: locale
|
|
|
|
type: flag
|
2021-03-22 15:59:05 +01:00
|
|
|
|
|
|
|
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-25 12:10:29 +02:00
|
|
|
- !include fields/_locale.yml
|
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" }
|
2022-05-30 15:57:11 +02:00
|
|
|
helperText:
|
|
|
|
de: "Der Pfad muss eindeutig sein und ohne ein Slash (/) beginnen und enden."
|
|
|
|
en: "The path must be unique and must start and end without a slash (/)."
|
2021-03-22 15:59:05 +01:00
|
|
|
- name: blocks
|
|
|
|
type: object[]
|
|
|
|
meta:
|
2022-03-20 15:02:40 +01:00
|
|
|
label: { de: "Artikel dieser Seite", en: "Page Articles" }
|
2022-05-30 13:11:51 +02:00
|
|
|
collapse: { titleFieldName: "article.content.title" }
|
2021-03-22 15:59:05 +01:00
|
|
|
subFields:
|
2022-05-13 15:06:32 +02:00
|
|
|
- !include fields/_article.yml
|