Skip to content

Commit 77aa741

Browse files
authored
Merge pull request #11 from jonasholfeld/version-2.0
Version 2.0
2 parents e1a34ec + 490e39b commit 77aa741

File tree

18 files changed

+188
-633
lines changed

18 files changed

+188
-633
lines changed

README.md

Lines changed: 84 additions & 220 deletions
Large diffs are not rendered by default.

exampleBlueprints/artistsExample/artist.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

exampleBlueprints/artistsExample/artists.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

exampleBlueprints/artistsExample/work.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

exampleBlueprints/artistsExample/works.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

exampleBlueprints/employee.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
title: Employee
2+
3+
fields:
4+
age:
5+
type: number
6+
label: Age
7+
projects:
8+
type: manytomany
9+
label: Projects
10+
translate: false
11+
fields:
12+
foreignkey:
13+
label: Project
14+
type: select
15+
options: query
16+
query:
17+
fetch: site.find('projects').childrenAndDrafts
18+
text: "{{ page.title }}"
19+
value: "{{ page.uuid }}"
20+
hours:
21+
type: number
22+
label: Number of hours
23+
validate:
24+
unique: projects
25+
relatationField: employees

exampleBlueprints/employees.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
title: Employees
2+
3+
sections:
4+
5+
children:
6+
headline: Employees
7+
type: pages
8+
templates: employee

exampleBlueprints/project.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
title: Project
2+
3+
fields:
4+
description:
5+
type: text
6+
label: Description
7+
employees:
8+
type: manytomany
9+
label: Employees
10+
translate: false
11+
fields:
12+
foreignkey:
13+
label: Employee
14+
type: select
15+
options: query
16+
query:
17+
fetch: site.find('employees').childrenAndDrafts
18+
text: "{{ page.title }}"
19+
value: "{{ page.uuid }}"
20+
hours:
21+
type: number
22+
label: Number of hours
23+
validate:
24+
unique: employees
25+
relatationField: projects

exampleBlueprints/projects.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
title: Projects
2+
3+
sections:
4+
5+
children:
6+
headline: Projects
7+
type: pages
8+
templates: project

exampleBlueprints/projectsExample/employee.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)