You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
ygdc/site/blueprints/pages/tournament.yml

33 lines
1015 B

title: Tournament
create:
status: listed
sections:
fields:
type: fields
fields:
participants:
width: 9/12
label: Participants
type: pages
sortBy: number asc
query: site.find('members').children.sortBy('forename', 'asc')
text: "{{ page.forename }} {{ page.surname }} <em>({{ page.nickname }})</em>"
date:
width: 3/12
label: End Date
type: date
default:
width: 1/1
label: Template
type: pages
max: 1
query: site.find("Templates").drafts
pages:
type: pages
label: Games
template: xoi
text: "[{{ page.startdate.toDate('d.m.') }}] {{ page.scorers.toStructure.nth(0).member.toPages.nth(0).forename }} {{ page.scorers.toStructure.nth(0).member.toPages.nth(0).surname }} vs. {{ page.scorers.toStructure.nth(1).member.toPages.nth(0).forename }} {{ page.scorers.toStructure.nth(1).member.toPages.nth(0).surname }}"
sortBy: startdate desc
status: unlisted