tibi-docs/api/collections/content.yml

156 lines
3.6 KiB
YAML
Raw Normal View History

2024-01-27 19:58:35 +01:00
name: content
uploadPath: ../media/page
meta:
label: Inhalt
muiIcon: tableOfContents
allowExportAll: true
backup:
active: true
collectionName: backups
defaultSort:
field: sort
order: MANUALLY
views:
- type: simpleList
selectionPriority: 0
primaryText: pageTitle
secondaryText: path
mediaQuery: "(min-width: 0px)"
tertiaryText: type
- type: table
selectionPriority: 1
mediaQuery: "(min-width: 700px)"
columns:
- source: type
name: Typ
filter: true
- source: path
name: Pfad
filter: true
- source: pageTitle
name: Titel
filter: true
- source: active
name: Aktiv
filter: true
tablist:
activeTab: general
tabs:
- name: general
label: Allgemein
subFields:
- source: path
- source: pageTitle
- source: type
- source: active
- source: sort
- name: teaser
label: Homepage Seitenteaser
subFields:
- source: teaser
- name: site
label: Seite
subFields:
- source: rows
- name: meta
label: Meta
subFields:
- source: meta
subNavigation:
- name: seite
label:
de: Seiten
en: pages
muiIcon: book-open-page-variant
defaultSort:
field: "sort"
order: "MANUALLY"
setDefault:
field: type
value: page
views:
- type: table
columns:
- source: path
name: Pfad
filter: true
- source: pageTitle
name: Titel
filter: true
- source: active
name: Aktiv
filter: true
filter:
type: page
permissions:
public:
methods:
get: true
post: false
put: false
delete: false
user:
methods:
get: true
post: true
put: true
delete: true
hooks:
post:
return:
type: javascript
file: hooks/clear_cache.js
put:
return:
type: javascript
file: hooks/clear_cache.js
projections:
navigation:
select:
path: 1
fields:
- type: string
name: path
meta:
2024-02-13 17:36:09 +01:00
label:
de: Pfad
en: Path
helperText:
de: "Ein Pfad sollte mit einem / starten und ohne eins enden."
en: "A path should start with a / and end without one."
2024-01-27 19:58:35 +01:00
containerProps:
layout:
size:
default: "col-6"
small: "col-12"
large: "col-6"
2024-02-13 17:36:09 +01:00
- !include fields/active.yml
- !include fields/contentType.yml
2024-01-27 19:58:35 +01:00
2024-02-13 17:36:09 +01:00
- !include fields/pageTitle.yml
- !include fields/rows.yml
2024-01-27 19:58:35 +01:00
- name: meta
type: object
meta:
2024-02-13 17:36:09 +01:00
label:
de: Meta Agaben
en: Meta Data
2024-01-27 19:58:35 +01:00
dependsOn:
eval: $.type == "page"
subFields: !include fieldLists/meta.yml
2024-02-13 17:36:09 +01:00
- !include fields/manualSort.yml