138 lines
3.3 KiB
YAML
138 lines
3.3 KiB
YAML
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
|
|
|
|
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
|
|
|
|
fields:
|
|
- name: tree
|
|
type: number
|
|
meta:
|
|
label: Baum
|
|
widget: select
|
|
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.
|
|
choices:
|
|
- id: 0
|
|
name:
|
|
de: Hauptnavigation
|
|
en: main navigation
|
|
- id: 1
|
|
name:
|
|
de: Servicenavigation
|
|
en: service navigation
|
|
|
|
- <<: *elemente
|
|
subFields:
|
|
- *endpoint
|
|
- *name
|
|
- *seite
|
|
- name: image
|
|
type: file
|
|
meta:
|
|
label: Bild
|
|
dependsOn:
|
|
eval: |
|
|
(function(){
|
|
if($parent.endpoint == undefined) return false;
|
|
return !$parent.endpoint
|
|
})()
|
|
|
|
- name: elements
|
|
type: object[]
|
|
meta:
|
|
label:
|
|
de: Elemente
|
|
en: elements
|
|
dependsOn:
|
|
eval: |
|
|
(function(){
|
|
if($parent.endpoint == undefined) return false;
|
|
return !$parent.endpoint
|
|
})()
|
|
folding:
|
|
previewUnfolded: name
|
|
previewFolded: name
|
|
subFields:
|
|
- *name
|
|
- *seite
|