2022-03-17 11:12:06 +01:00
|
|
|
########################################################################
|
|
|
|
# Articles
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
name: articles
|
|
|
|
uploadPath: ../media/articles
|
|
|
|
meta:
|
|
|
|
# Navigationseintrag in der Admin-UI
|
2022-04-01 14:14:45 +02:00
|
|
|
label: { de: "Artikel", en: "Articles" }
|
2022-03-17 11:12:06 +01:00
|
|
|
# Icon (Material UI) für den Navigationseintrag
|
|
|
|
muiIcon: file-document-edit-outline
|
|
|
|
# Standardsortierung der Liste
|
2022-03-20 15:02:40 +01:00
|
|
|
defaultSort: { field: "article.general.sort", order: "ASC" }
|
2022-03-17 11:12:06 +01:00
|
|
|
# Admin-Backend Ansichten
|
|
|
|
defaultImageFilter: s
|
|
|
|
views:
|
|
|
|
# Mobile Darstellung
|
|
|
|
- type: simpleList
|
|
|
|
mediaQuery: "(max-width:599px)"
|
|
|
|
primaryText: path
|
|
|
|
columns:
|
2022-06-03 14:43:59 +02:00
|
|
|
- source: article.general.locale
|
|
|
|
type: flag
|
2022-04-01 14:14:45 +02:00
|
|
|
- article.general.public
|
|
|
|
- article.content.title
|
|
|
|
- article.general.position
|
|
|
|
- article.general.sort
|
2022-03-17 11:12:06 +01:00
|
|
|
# Desktop
|
|
|
|
- type: table
|
|
|
|
mediaQuery: "(min-width:600px)"
|
|
|
|
columns:
|
2022-06-03 14:43:59 +02:00
|
|
|
- source: article.general.locale
|
|
|
|
type: flag
|
2022-04-01 14:14:45 +02:00
|
|
|
- article.general.public
|
2022-04-14 12:23:10 +02:00
|
|
|
- label: { de: "Titel", en: "Title" }
|
|
|
|
source: article.content.title
|
|
|
|
filter: true
|
|
|
|
- label: { de: "Position", en: "Position" }
|
|
|
|
source: article.general.position
|
|
|
|
filter: true
|
2022-04-01 14:14:45 +02:00
|
|
|
- article.general.sort
|
2022-03-17 11:12:06 +01:00
|
|
|
|
|
|
|
imageFilter:
|
|
|
|
xs:
|
|
|
|
- fit: true
|
|
|
|
height: 90
|
|
|
|
width: 90
|
2022-03-18 21:33:01 +01:00
|
|
|
resampling: "lancos"
|
2022-03-17 11:12:06 +01:00
|
|
|
quality: 60
|
|
|
|
s:
|
|
|
|
- fit: true
|
|
|
|
height: 300
|
|
|
|
width: 300
|
2022-03-18 21:33:01 +01:00
|
|
|
resampling: "lancos"
|
2022-03-17 11:12:06 +01:00
|
|
|
quality: 60
|
|
|
|
m:
|
|
|
|
- fit: true
|
|
|
|
height: 600
|
|
|
|
width: 600
|
2022-03-18 21:33:01 +01:00
|
|
|
resampling: "lancos"
|
2022-03-17 11:12:06 +01:00
|
|
|
quality: 60
|
|
|
|
l:
|
|
|
|
- fit: true
|
|
|
|
height: 1200
|
|
|
|
width: 1200
|
2022-03-18 21:33:01 +01:00
|
|
|
resampling: "lancos"
|
2022-03-17 11:12:06 +01:00
|
|
|
quality: 60
|
|
|
|
xl:
|
|
|
|
- fit: true
|
|
|
|
height: 2000
|
|
|
|
width: 2000
|
2022-03-18 21:33:01 +01:00
|
|
|
resampling: "lancos"
|
2022-03-17 11:12:06 +01:00
|
|
|
quality: 60
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
public:
|
|
|
|
methods:
|
|
|
|
get: true
|
|
|
|
post: false
|
|
|
|
put: false
|
|
|
|
delete: false
|
|
|
|
user:
|
|
|
|
methods:
|
|
|
|
get: true
|
|
|
|
post: true
|
|
|
|
put: true
|
|
|
|
delete: true
|
|
|
|
# token als Zusatzsicherung gegen Spam, mehr siehe Hook
|
|
|
|
"token:${PUBLIC_TOKEN}":
|
|
|
|
methods:
|
|
|
|
get: false
|
|
|
|
post: false
|
|
|
|
put: false
|
|
|
|
delete: false
|
|
|
|
|
|
|
|
# hooks:
|
|
|
|
# post:
|
|
|
|
# create:
|
|
|
|
# type: javascript
|
|
|
|
# file: hooks/article/post_create.js
|
|
|
|
# put:
|
|
|
|
# update:
|
|
|
|
# type: javascript
|
|
|
|
# file: hooks/article/put_return.js
|
|
|
|
# delete:
|
|
|
|
# return:
|
|
|
|
# type: javascript
|
|
|
|
# file: hooks/article/delete_return.js
|
|
|
|
|
|
|
|
fields:
|
2022-05-13 15:06:32 +02:00
|
|
|
- !include fields/_article.yml
|