tibi-types/demo-api/collections/mycol.yml

53 lines
937 B
YAML
Raw Normal View History

2022-01-13 18:38:02 +01:00
name: mycol
uploadPath: ../media/mycol
meta:
2022-10-12 16:23:32 +02:00
label: { de: mycol, en: mycol }
rowIdentTpl: { twig: "{{ title }}" }
views:
- type: table
columns:
- title
2022-01-13 18:38:02 +01:00
2022-02-01 18:59:17 +01:00
permissions: !include global/test-permissions.yml
2022-10-12 16:23:32 +02:00
projections:
test:
select:
field1: 1
2022-01-13 18:38:02 +01:00
hooks:
2022-10-12 16:23:32 +02:00
get:
return:
type: javascript
file: hooks/mycol/get_return.js
2022-01-13 18:38:02 +01:00
2022-10-12 16:23:32 +02:00
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: []