tibi-docs/api/collections/navigation.yml

138 lines
3.3 KiB
YAML
Raw Normal View History

2024-01-27 19:58:35 +01:00
name: navigation
uploadPath: ../media/navigation
meta:
label: "Navigation"
muiIcon: navigation
views:
- type: simpleList
mediaQuery: "(max-width:599px)"
primaryText: tree
- type: table
mediaQuery: "(min-width:600px)"
columns:
- source: tree
permissions:
public:
methods:
get: true
post: false
put: false
delete: false
user:
methods:
get: true
post: false
put: true
delete: false
2024-02-13 17:36:09 +01:00
x-endpoint: &endpoint
name: endpoint
type: boolean
meta:
defaultValue:
eval: 1 == 1
label: Endpunkt
x-elemente: &elemente
name: elements
type: object[]
meta:
label:
de: Elemente
en: elements
folding:
previewUnfolded: name
previewFolded: name
x-name: &name
name: name
type: string
meta:
label:
de: Name
en: name
helperText:
de: Dieser Name wird zur Anzeige in der Navigation verwendet.
en: This name is used for display in the navigation.
x-page: &seite
name: page
type: string
meta:
label:
de: Seite
en: page
widget: select
dependsOn:
eval: |
(function(){
if($parent.endpoint == undefined) return true;
return $parent.endpoint
})()
choices:
endpoint: content
params:
sort: path
projection: navigation
mapping:
id: id
name: path
2024-01-27 19:58:35 +01:00
fields:
- name: tree
type: number
meta:
label: Baum
widget: select
2024-02-13 17:36:09 +01:00
helperText:
de: Die Servicenavigation sollte Seiten wie bspw. die Datneschutzerklärung oder das Impressum umfassen.
en: The service navigation should include pages such as the data protection declaration or the imprint.
2024-01-27 19:58:35 +01:00
choices:
- id: 0
name:
de: Hauptnavigation
en: main navigation
- id: 1
name:
de: Servicenavigation
en: service navigation
2024-02-13 17:36:09 +01:00
- <<: *elemente
2024-01-27 19:58:35 +01:00
subFields:
2024-02-13 17:36:09 +01:00
- *endpoint
- *name
- *seite
- name: image
type: file
2024-01-27 19:58:35 +01:00
meta:
2024-02-13 17:36:09 +01:00
label: Bild
dependsOn:
eval: |
(function(){
if($parent.endpoint == undefined) return false;
return !$parent.endpoint
})()
2024-01-27 19:58:35 +01:00
2024-02-13 17:36:09 +01:00
- name: elements
type: object[]
2024-01-27 19:58:35 +01:00
meta:
label:
2024-02-13 17:36:09 +01:00
de: Elemente
en: elements
dependsOn:
eval: |
(function(){
if($parent.endpoint == undefined) return false;
return !$parent.endpoint
})()
folding:
previewUnfolded: name
previewFolded: name
subFields:
- *name
- *seite