forked from cms/tibi-svelte-starter
151 lines
3.6 KiB
YAML
151 lines
3.6 KiB
YAML
|
########################################################################
|
||
|
# Articles
|
||
|
########################################################################
|
||
|
|
||
|
name: articles
|
||
|
uploadPath: ../media/articles
|
||
|
meta:
|
||
|
# Navigationseintrag in der Admin-UI
|
||
|
label: { de: "Artikel auf der Seite", en: "Page articles" }
|
||
|
# Icon (Material UI) für den Navigationseintrag
|
||
|
muiIcon: file-document-edit-outline
|
||
|
# Standardsortierung der Liste
|
||
|
defaultSort: { field: "name", order: "ASC" }
|
||
|
# Admin-Backend Ansichten
|
||
|
defaultImageFilter: s
|
||
|
views:
|
||
|
# Mobile Darstellung
|
||
|
- type: simpleList
|
||
|
mediaQuery: "(max-width:599px)"
|
||
|
primaryText: path
|
||
|
columns:
|
||
|
- public
|
||
|
- image
|
||
|
- title
|
||
|
- position
|
||
|
# Desktop
|
||
|
- type: table
|
||
|
mediaQuery: "(min-width:600px)"
|
||
|
columns:
|
||
|
- public
|
||
|
- image
|
||
|
- title
|
||
|
- position
|
||
|
|
||
|
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: 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:
|
||
|
- name: articleTabs
|
||
|
type: tabs
|
||
|
meta:
|
||
|
label:
|
||
|
de: Informationen zu einem Artikel
|
||
|
en: Article Information
|
||
|
activeTab: 0
|
||
|
subFields:
|
||
|
- name: articleTab
|
||
|
type: object
|
||
|
meta:
|
||
|
label:
|
||
|
de: Artikel
|
||
|
en: Article
|
||
|
css:
|
||
|
subFields:
|
||
|
- name: articleLayoutTab
|
||
|
type: object
|
||
|
meta:
|
||
|
label:
|
||
|
de: Layout
|
||
|
en: Layout
|
||
|
css:
|
||
|
subFields:
|
||
|
- name: articleMediaTab
|
||
|
type: object
|
||
|
meta:
|
||
|
label:
|
||
|
de: Bilder
|
||
|
en: Images
|
||
|
css:
|
||
|
subFields:
|
||
|
- name: articleAttachmentsTab
|
||
|
type: object
|
||
|
meta:
|
||
|
label:
|
||
|
de: Anhänge / Downloads
|
||
|
en: Attachments / Downloads
|
||
|
css:
|
||
|
subFields:
|
||
|
- name: articleMetaTab
|
||
|
type: object
|
||
|
meta:
|
||
|
label:
|
||
|
de: Meta
|
||
|
en: Meta
|
||
|
css:
|
||
|
subFields:
|