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
|
||||
136
api/collections/__UNUSED__/external.yml
Normal file
136
api/collections/__UNUSED__/external.yml
Normal file
@@ -0,0 +1,136 @@
|
||||
###############################################################
|
||||
# Content Blöcke
|
||||
###############################################################
|
||||
|
||||
# Name/URL-Anteil der Kollektion
|
||||
name: external
|
||||
uploadPath: ../media/external
|
||||
|
||||
# Metaangaben zur Kollektion welche in der Admin-UI verwendet werden können
|
||||
meta:
|
||||
# Navigationseintrag in der Admin-UI
|
||||
label: { de: "Extern", en: "External" }
|
||||
# Icon (Material UI) für den Navigationseintrag
|
||||
muiIcon: download
|
||||
# Identifizierung eines Eintrags für z.B. Select-Boxen in der Admin-UI
|
||||
rowIdentTpl: { twig: "{{ path }}" }
|
||||
# Standardsortierung der Liste
|
||||
defaultSort: { field: "file", order: "ASC" }
|
||||
# Admin-Backend Ansichten
|
||||
defaultImageFilter: s
|
||||
views:
|
||||
# Mobile Darstellung
|
||||
- type: simpleList
|
||||
mediaQuery: "(max-width:599px)"
|
||||
primaryText: path
|
||||
columns:
|
||||
- date
|
||||
- title
|
||||
- source: file
|
||||
type: file
|
||||
# Desktop
|
||||
- type: table
|
||||
mediaQuery: "(min-width:600px)"
|
||||
columns:
|
||||
- date
|
||||
- title
|
||||
- source: file
|
||||
type: file
|
||||
|
||||
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
|
||||
|
||||
# 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:
|
||||
- name: date
|
||||
type: string
|
||||
meta:
|
||||
filter: true
|
||||
widget: date
|
||||
inputProps:
|
||||
type: "datetime-local"
|
||||
label:
|
||||
de: Datum
|
||||
en: Date
|
||||
helperText:
|
||||
de: "Dieses Feld wird nur zur Filterung innerhalb vom Tibi-CMS verwendet."
|
||||
en: "This field is only used for filtering within Tibi-CMS."
|
||||
- name: title
|
||||
type: string
|
||||
meta:
|
||||
filter: true
|
||||
label: { de: "Titel", en: "Title" }
|
||||
helperText:
|
||||
de: "Dieses Feld wird nur zur Filterung innerhalb vom Tibi-CMS verwendet."
|
||||
en: "This field is only used for filtering within Tibi-CMS."
|
||||
- name: file
|
||||
type: file
|
||||
meta:
|
||||
masterDomain: "http://localhost:3002"
|
||||
widget: image
|
||||
label: { de: "Datei", en: "File" }
|
||||
externalUrl: true
|
||||
@@ -0,0 +1,60 @@
|
||||
name: assignments
|
||||
type: object
|
||||
meta:
|
||||
label: { de: "Verknüpfung", en: "Assignment" }
|
||||
subFields:
|
||||
- name: pages
|
||||
type: string[]
|
||||
meta:
|
||||
helperText:
|
||||
de: "Verknüpft den Artikel mit beliebigen Seiten."
|
||||
en: "Links the article to any page."
|
||||
widget: chipArray
|
||||
label:
|
||||
de: Verknüpfung zu Seiten
|
||||
en: Assignment to pages
|
||||
defaultValue: []
|
||||
choices:
|
||||
endpoint: "content"
|
||||
mapping:
|
||||
id: "path"
|
||||
name: "path"
|
||||
params:
|
||||
sort: "path"
|
||||
- name: articles
|
||||
type: string[]
|
||||
meta:
|
||||
helperText:
|
||||
de: "Verknüpft den Artikel mit beliebigen Artikeln."
|
||||
en: "Links the article to any articles."
|
||||
widget: chipArray
|
||||
label:
|
||||
de: Verknüpfung zu Artikeln
|
||||
en: Assignment to articles
|
||||
defaultValue: []
|
||||
choices:
|
||||
endpoint: "articles"
|
||||
mapping:
|
||||
id: "id"
|
||||
name: "article.content.title"
|
||||
params:
|
||||
sort: "article.content.title"
|
||||
- name: tags
|
||||
type: string[]
|
||||
meta:
|
||||
helperText:
|
||||
de: "Über die Zuweisung von Schlagworten, können Artikel noch einmal genauer kategorisiert werden."
|
||||
en: "Articles can be categorized more precisely by assigning keywords."
|
||||
widget: chipArray
|
||||
label:
|
||||
de: Tags / Schlagworte / Labels
|
||||
en: Tags
|
||||
addAllowed: true
|
||||
defaultValue: []
|
||||
choices:
|
||||
endpoint: "tags"
|
||||
mapping:
|
||||
id: "name"
|
||||
name: "name"
|
||||
params:
|
||||
sort: "name"
|
||||
@@ -0,0 +1,25 @@
|
||||
name: attachments
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Anhänge / Downloads
|
||||
en: Attachments / Downloads
|
||||
css:
|
||||
subFields:
|
||||
- name: files
|
||||
type: object[]
|
||||
meta:
|
||||
label: { de: "Anhänge", en: "Attachments" }
|
||||
subFields:
|
||||
- name: title
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Datei-Titel", en: "File Title" }
|
||||
- name: id
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Technischer Name / ID", en: "Technical name / ID" }
|
||||
- name: file
|
||||
type: file
|
||||
meta:
|
||||
label: { de: "", en: "" }
|
||||
@@ -0,0 +1,61 @@
|
||||
name: margin
|
||||
type: object
|
||||
meta:
|
||||
label: { de: "Abstand nach außen (Margin)", en: "Distance to the outside (Margin)" }
|
||||
subFields:
|
||||
- name: top
|
||||
type: string
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: Abstand nach Oben
|
||||
en: Margin Top
|
||||
choices:
|
||||
- { id: "", name: "-" }
|
||||
- { id: "mt-xs", name: "Sehr kleiner Abstand" }
|
||||
- { id: "mt-sm", name: "Kleiner Abstand" }
|
||||
- { id: "mt-md", name: "Normal" }
|
||||
- { id: "mt-lg", name: "Großer Abstand" }
|
||||
- { id: "mt-xl", name: "Sehr großer Abstand" }
|
||||
- name: right
|
||||
type: string
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: Abstand nach Rechts
|
||||
en: Margin Right
|
||||
choices:
|
||||
- { id: "", name: "-" }
|
||||
- { id: "mr-xs", name: "Sehr kleiner Abstand" }
|
||||
- { id: "mr-sm", name: "Kleiner Abstand" }
|
||||
- { id: "mr-md", name: "Normal" }
|
||||
- { id: "mr-lg", name: "Großer Abstand" }
|
||||
- { id: "mr-xl", name: "Sehr großer Abstand" }
|
||||
- name: bottom
|
||||
type: string
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: Abstand nach Unten
|
||||
en: Margin Bottom
|
||||
choices:
|
||||
- { id: "", name: "-" }
|
||||
- { id: "mb-xs", name: "Sehr kleiner Abstand" }
|
||||
- { id: "mb-sm", name: "Kleiner Abstand" }
|
||||
- { id: "mb-md", name: "Normal" }
|
||||
- { id: "mb-lg", name: "Großer Abstand" }
|
||||
- { id: "mb-xl", name: "Sehr großer Abstand" }
|
||||
- name: left
|
||||
type: string
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: Abstand nach Links
|
||||
en: Margin Left
|
||||
choices:
|
||||
- { id: "", name: "-" }
|
||||
- { id: "ml-xs", name: "Sehr kleiner Abstand" }
|
||||
- { id: "ml-sm", name: "Kleiner Abstand" }
|
||||
- { id: "ml-md", name: "Normal" }
|
||||
- { id: "ml-lg", name: "Großer Abstand" }
|
||||
- { id: "ml-xl", name: "Sehr großer Abstand" }
|
||||
@@ -0,0 +1,61 @@
|
||||
name: padding
|
||||
type: object
|
||||
meta:
|
||||
label: { de: "Abstand nach innen (Padding)", en: "Distance inside (Padding)" }
|
||||
subFields:
|
||||
- name: top
|
||||
type: string
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: Innenabstand nach Oben
|
||||
en: Padding Top
|
||||
choices:
|
||||
- { id: "", name: "-" }
|
||||
- { id: "pt-xs", name: "Sehr kleiner Abstand" }
|
||||
- { id: "pt-sm", name: "Kleiner Abstand" }
|
||||
- { id: "pt-md", name: "Normal" }
|
||||
- { id: "pt-lg", name: "Großer Abstand" }
|
||||
- { id: "pt-xl", name: "Sehr großer Abstand" }
|
||||
- name: right
|
||||
type: string
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: Innenabstand nach Rechts
|
||||
en: Padding Right
|
||||
choices:
|
||||
- { id: "", name: "-" }
|
||||
- { id: "pr-xs", name: "Sehr kleiner Abstand" }
|
||||
- { id: "pr-sm", name: "Kleiner Abstand" }
|
||||
- { id: "pr-md", name: "Normal" }
|
||||
- { id: "pr-lg", name: "Großer Abstand" }
|
||||
- { id: "pr-xl", name: "Sehr großer Abstand" }
|
||||
- name: bottom
|
||||
type: string
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: Innenabstand nach Unten
|
||||
en: Padding Bottom
|
||||
choices:
|
||||
- { id: "", name: "-" }
|
||||
- { id: "pb-xs", name: "Sehr kleiner Abstand" }
|
||||
- { id: "pb-sm", name: "Kleiner Abstand" }
|
||||
- { id: "pb-md", name: "Normal" }
|
||||
- { id: "pb-lg", name: "Großer Abstand" }
|
||||
- { id: "pb-xl", name: "Sehr großer Abstand" }
|
||||
- name: left
|
||||
type: string
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: Innenabstand nach Links
|
||||
en: Padding Left
|
||||
choices:
|
||||
- { id: "", name: "-" }
|
||||
- { id: "pl-xs", name: "Sehr kleiner Abstand" }
|
||||
- { id: "pl-sm", name: "Kleiner Abstand" }
|
||||
- { id: "pl-md", name: "Normal" }
|
||||
- { id: "pl-lg", name: "Großer Abstand" }
|
||||
- { id: "pl-xl", name: "Sehr großer Abstand" }
|
||||
28
api/collections/__UNUSED__/fields/article/_article-link.yml
Normal file
28
api/collections/__UNUSED__/fields/article/_article-link.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: link
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Verlinkung
|
||||
en: Link
|
||||
css:
|
||||
subFields:
|
||||
- name: url
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Ziel-URL", en: "Target URL" }
|
||||
- name: text
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Link-Beschriftung", en: "Link-Text" }
|
||||
- name: target
|
||||
type: string
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: Zielfenster
|
||||
en: Target
|
||||
defaultValue: ["_self"]
|
||||
choices:
|
||||
- { id: "_self", name: "(Standardwert) gleicher Tab oder Seite" }
|
||||
- { id: "_blank", name: "Neuer Tab oder Fenster" }
|
||||
- { id: "_parent", name: "Elternfenster" }
|
||||
34
api/collections/__UNUSED__/fields/article/_article-media.yml
Normal file
34
api/collections/__UNUSED__/fields/article/_article-media.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: media
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Medien
|
||||
en: Media
|
||||
subFields:
|
||||
- name: files
|
||||
type: object[]
|
||||
meta:
|
||||
label: { de: "Bilder", en: "Images" }
|
||||
subFields:
|
||||
- name: title
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Datei-Titel", en: "File Title" }
|
||||
- name: alternateText
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Alternativer Text", en: "Alternate Text" }
|
||||
- name: id
|
||||
type: string
|
||||
meta:
|
||||
editableWhileCreating: true
|
||||
label: { de: "Technischer Name / ID", en: "Technical name / ID" }
|
||||
- name: file
|
||||
type: file
|
||||
meta:
|
||||
widget: image
|
||||
label: { de: "Datei", en: "File" }
|
||||
- name: caption
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Bildunterschrift", en: "Caption" }
|
||||
160
api/collections/__UNUSED__/fields/article/_article.yml
Normal file
160
api/collections/__UNUSED__/fields/article/_article.yml
Normal file
@@ -0,0 +1,160 @@
|
||||
name: article
|
||||
type: object
|
||||
meta:
|
||||
widget: tabs
|
||||
label:
|
||||
de: Einstellungen zum Artikel
|
||||
en: Article Setings
|
||||
activeTab: 1
|
||||
subFields:
|
||||
- name: general
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Allgemein
|
||||
en: General
|
||||
subFields:
|
||||
- name: public
|
||||
type: boolean
|
||||
meta:
|
||||
filter: true
|
||||
label:
|
||||
de: Veröffentlicht
|
||||
en: Public
|
||||
helperText:
|
||||
de: "Der Artikel wird auf der Seite angezeigt."
|
||||
en: "This article is displayed on the page."
|
||||
- name: type
|
||||
type: string
|
||||
meta:
|
||||
filter: true
|
||||
helperText:
|
||||
de: "Definiert allgemeinen Typ des Artikels."
|
||||
en: "Defines general type of the article."
|
||||
widget: select
|
||||
label:
|
||||
de: Typ des Artikels
|
||||
en: Article type
|
||||
defaultValue: default
|
||||
choices:
|
||||
- { id: "default", name: { de: "Artikel", en: "Article" } }
|
||||
- { id: "news", name: { de: "News", en: "News" } }
|
||||
- !include ../_locale.yml
|
||||
- name: publish_date
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Datum der Veröffentlichung
|
||||
en: Release Date
|
||||
subFields:
|
||||
- name: from
|
||||
type: string
|
||||
meta:
|
||||
widget: date
|
||||
inputProps:
|
||||
type: "datetime-local"
|
||||
label:
|
||||
de: Datum (ab)
|
||||
en: Date (from)
|
||||
- name: until
|
||||
type: string
|
||||
meta:
|
||||
widget: date
|
||||
inputProps:
|
||||
type: "datetime-local"
|
||||
label:
|
||||
de: Datum (bis)
|
||||
en: Date (until)
|
||||
- name: interval
|
||||
type: number
|
||||
meta:
|
||||
inputProps:
|
||||
placeholder: 60000
|
||||
label:
|
||||
{
|
||||
de: "Zeit-Interval für Live-Check der Veröffentlichung.",
|
||||
en: "Time interval for publication live check",
|
||||
}
|
||||
helperText:
|
||||
de: "Der Zeit-Interval wird in ms (Millisekunden) angebeben. Standard ist 60000 (60sec)"
|
||||
en: "The time interval is specified in ms (milliseconds). Default is 60000 (60sec)"
|
||||
- name: sort
|
||||
type: number
|
||||
meta:
|
||||
inputProps:
|
||||
type: number
|
||||
placeholder: 0
|
||||
label: { de: "Sortierung", en: "Sorting" }
|
||||
helperText:
|
||||
de: "1...5...10...100"
|
||||
en: "1...5...10...100"
|
||||
- name: content
|
||||
type: object
|
||||
meta:
|
||||
label:
|
||||
de: Inhalt
|
||||
en: Content
|
||||
subFields:
|
||||
- name: slug
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Permalink", en: "Permalink" }
|
||||
- name: title
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Titel", en: "Title" }
|
||||
- name: subtitle
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Untertitel", en: "Subtitle" }
|
||||
- name: types
|
||||
type: object
|
||||
meta:
|
||||
widget: tabs
|
||||
label:
|
||||
de: Inhalt dieses Artikel
|
||||
en: Article Content
|
||||
activeTab: 0
|
||||
subFields:
|
||||
- name: teaser
|
||||
type: string
|
||||
meta:
|
||||
widget: richtext
|
||||
label: { de: "Teaser-Text des Artikel", en: "Article Teaser Text" }
|
||||
- name: details
|
||||
type: string
|
||||
meta:
|
||||
widget: richtext
|
||||
label: { de: "Detail-Text des Artikel", en: "Article Detail Text" }
|
||||
- !include _article-media.yml
|
||||
- !include _article-attachments.yml
|
||||
- name: layout
|
||||
type: object
|
||||
meta:
|
||||
label: { de: Layout, en: Layout }
|
||||
subFields:
|
||||
- name: variant
|
||||
type: string
|
||||
meta:
|
||||
helperText:
|
||||
de: "Definiert das visuelle Erscheinungsbild der aller Teaser-Informationen des Artikels."
|
||||
en: "Defines the visual appearance of all teaser information of the article."
|
||||
widget: select
|
||||
label:
|
||||
de: Teaser Erscheinungsbild
|
||||
en: Teaser Layout
|
||||
defaultValue: default
|
||||
choices:
|
||||
- { id: "top", name: { de: "Artikelbild oben", en: "Article picture top" } }
|
||||
- { id: "right", name: { de: "Artikelbild rechts", en: "Article picture right" } }
|
||||
- { id: "bottom", name: { de: "Artikelbild unten", en: "Article picture left" } }
|
||||
- { id: "default", name: { de: "Artikelbild links", en: "Article picture left" } }
|
||||
- name: properties
|
||||
type: object
|
||||
meta:
|
||||
widget: tabs
|
||||
subFields:
|
||||
- !include _article-layout-margin.yml
|
||||
- !include _article-layout-padding.yml
|
||||
- !include _article-link.yml
|
||||
- !include _article-assignments.yml
|
||||
127
api/collections/__UNUSED__/galleries.yml
Normal file
127
api/collections/__UNUSED__/galleries.yml
Normal file
@@ -0,0 +1,127 @@
|
||||
###############################################################
|
||||
# Galleries
|
||||
###############################################################
|
||||
|
||||
# Name/URL-Anteil der Kollektion
|
||||
name: galleries
|
||||
uploadPath: ../media/galleries
|
||||
|
||||
# Metaangaben zur Kollektion welche in der Admin-UI verwendet werden können
|
||||
meta:
|
||||
# Navigationseintrag in der Admin-UI
|
||||
label: { de: "Galerien", en: "Galleries" }
|
||||
# Icon (Material UI) für den Navigationseintrag
|
||||
muiIcon: image-multiple-outline
|
||||
# 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: name
|
||||
columns:
|
||||
- name
|
||||
- variant
|
||||
# Desktop
|
||||
- type: table
|
||||
mediaQuery: "(min-width:600px)"
|
||||
columns:
|
||||
- name
|
||||
- variant
|
||||
|
||||
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: false
|
||||
put: false
|
||||
delete: false
|
||||
# token als Zusatzsicherung gegen Spam, mehr siehe Hook
|
||||
"token:${PUBLIC_TOKEN}":
|
||||
methods:
|
||||
get: false
|
||||
post: false
|
||||
put: false
|
||||
delete: false
|
||||
|
||||
# Feldliste der Kollektion
|
||||
fields:
|
||||
- name: name
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Name der Galerie", en: "Gallery Name" }
|
||||
- name: variant
|
||||
type: string
|
||||
meta:
|
||||
widget: select
|
||||
label:
|
||||
de: Erscheinungsbild
|
||||
en: Appearance
|
||||
defaultValue: ["default"]
|
||||
choices:
|
||||
- { id: "default", name: { de: "Standard", en: "Default" } }
|
||||
- { id: "simple-with-title", name: { de: "Einfach mit Titel", en: "Simple with title" } }
|
||||
- name: items
|
||||
type: object[]
|
||||
meta:
|
||||
label: { de: "Bilder der Galerie", en: "Gallery Images" }
|
||||
subFields:
|
||||
- name: file
|
||||
type: file
|
||||
meta:
|
||||
widget: image
|
||||
label: { de: "Datei", en: "File" }
|
||||
- name: title
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Titel", en: "Title" }
|
||||
- name: description
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Beschreibung", en: "Description" }
|
||||
- name: alt
|
||||
type: string
|
||||
meta:
|
||||
label: { de: "Alternativer Text", en: "Alternative caption" }
|
||||
Reference in New Issue
Block a user