Update and rework project structure with new pagebuilder concept. (based on RK Architekten and SFU Politik configs and sources)
This commit is contained in:
121
api/collections/__UNUSED__/articles.yml
Normal file
121
api/collections/__UNUSED__/articles.yml
Normal file
@@ -0,0 +1,121 @@
|
||||
########################################################################
|
||||
# Articles
|
||||
########################################################################
|
||||
|
||||
name: articles
|
||||
uploadPath: ../media/articles
|
||||
meta:
|
||||
# Navigationseintrag in der Admin-UI
|
||||
label: { de: "Artikel", en: "Articles" }
|
||||
# Icon (Material UI) für den Navigationseintrag
|
||||
muiIcon: file-document-edit-outline
|
||||
# Standardsortierung der Liste
|
||||
defaultSort: { field: "article.general.sort", order: "ASC" }
|
||||
# Admin-Backend Ansichten
|
||||
defaultImageFilter: s
|
||||
views:
|
||||
# Mobile Darstellung
|
||||
- type: simpleList
|
||||
mediaQuery: "(max-width:599px)"
|
||||
primaryText: path
|
||||
columns:
|
||||
- article.general.public
|
||||
- article.content.title
|
||||
- article.general.type
|
||||
- article.general.sort
|
||||
- source: article.general.locale
|
||||
type: flag
|
||||
# Desktop
|
||||
- type: table
|
||||
mediaQuery: "(min-width:600px)"
|
||||
columns:
|
||||
- article.general.public
|
||||
- label: { de: "Titel", en: "Title" }
|
||||
source: article.content.title
|
||||
filter: true
|
||||
- article.general.type
|
||||
- article.general.sort
|
||||
- source: article.general.locale
|
||||
type: flag
|
||||
# Filter Navigation-Items in Collection-Navigation
|
||||
# navigationFilter:
|
||||
# - label: { de: "News", en: "News" }
|
||||
# mdiIcon: filter-outline
|
||||
# params:
|
||||
# - sort: article.general.sort
|
||||
# # - s.article.general.public: true
|
||||
# - w.article.content.title: lor
|
||||
# - s.article.general.locale: de
|
||||
# - label: { de: "Diam", en: "Diam" }
|
||||
# mdiIcon: filter-outline
|
||||
# params:
|
||||
# - sort: article.general.sort
|
||||
# - s.article.general.public: true
|
||||
# - w.article.content.title: diam
|
||||
# - s.article.general.locale: de
|
||||
|
||||
imageFilter:
|
||||
xs:
|
||||
- fit: true
|
||||
height: 90
|
||||
width: 90
|
||||
resampling: "lancos"
|
||||
quality: 60
|
||||
s:
|
||||
- fit: true
|
||||
height: 300
|
||||
width: 300
|
||||
resampling: "lancos"
|
||||
quality: 60
|
||||
m:
|
||||
- fit: true
|
||||
height: 600
|
||||
width: 600
|
||||
resampling: "lancos"
|
||||
quality: 60
|
||||
l:
|
||||
- fit: true
|
||||
height: 1200
|
||||
width: 1200
|
||||
resampling: "lancos"
|
||||
quality: 60
|
||||
xl:
|
||||
- fit: true
|
||||
height: 2000
|
||||
width: 2000
|
||||
resampling: "lancos"
|
||||
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/articles/post_create.js
|
||||
put:
|
||||
update:
|
||||
type: javascript
|
||||
file: hooks/articles/put_update.js
|
||||
|
||||
fields:
|
||||
- !include fields/article/_article.yml
|
||||
Reference in New Issue
Block a user