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

47 lines
1.1 KiB

title: Tournament
create:
status: listed
sections:
fields:
type: fields
fields:
participants:
width: 1/2
label: Participants
type: pages
query: site.find('members')
text: "{{ page.forename }} {{ page.surname }} <em>({{ page.nickname }})</em>"
date:
width: 1/2
label: Date
type: date
default:
width: 1/1
label: Template
type: pages
max: 1
query: site.find("Templates").drafts
# layout:
# type: layout
# layouts:
# - "1/6, 1/6, 1/6, 1/6, 1/6, 1/6"
# fieldsets:
# - heading
# - simple_game
pages:
type: pages
label: Games
template: xoi
text: "[{{ page.startdate.toDate('d.m.') }}] {{ page.players.toPages.first.forename }} {{ page.players.toPages.first.surname }} vs. {{ page.players.toPages.nth(1).forename }} {{ page.players.toPages.nth(1).surname }}"
sortBy: startdate desc
status: unlisted
# pages2:
# type: pages
# label: Default
# template: xoi
# sortBy: startdate desc
# status: draft
# max: 1
# limit: 1