tibi-types/demo-api/collections/mycol.yml
Sebastian Frank 14da32bac6
All checks were successful
continuous-integration/drone/push Build is passing
updated schema for contentbuilder and refactored code
2022-11-18 18:59:36 +00:00

53 lines
937 B
YAML

name: mycol
uploadPath: ../media/mycol
meta:
label: { de: mycol, en: mycol }
rowIdentTpl: { twig: "{{ title }}" }
views:
- type: table
columns:
- title
permissions: !include global/test-permissions.yml
projections:
test:
select:
field1: 1
hooks:
get:
return:
type: javascript
file: hooks/mycol/get_return.js
x-additional: test
fields:
- name: testfield
type: string
meta:
label:
de: test
en: test
widget: "text"
- name: testfield2
type: string
meta:
label:
de: test2
en: test2
widget: "contentbuilder"
baseHref: /mycol
- name: testfield3
type: string
meta:
label:
de: test3
en: test3
widget: "select"
choices: []