I’m having trouble getting a table layout to work. I have a table layout (people.yml) that lists a number of persons (person.yml) but I can’t seem to get a link that will bring me to the person’s details page so I can edit them. I’ve tried adding link: panel and link: true, but nothing works. Can anyone spot my error?
people.yml
title: Personen
icon: users
options:
changeTemplate: false
delete: false
duplicate: false
sort: true
sections:
persons:
headline: Alle Personen
type: pages
layout: table
size: tiny
template: person
batch: true
sortable: true
sortBy: born asc
search: true
status: all
limit: 100
paginate: 50
columns:
fullname:
label: Name
value: "{{ page.fullname }} ({{ page.gender}})"
type: text
width: 1/3
born:
label: Geboren
value: "{{ page.born }}"
width: 1/6
died:
label: Gestorben
value: "{{ page.died }}"
width: 1/6
birthplace:
label: Ort
text: "{{ page.birthplace }}"
width: 1/6
relation:
label: Beziehung
value: "{{ page.relation }}"
width: 1/4
empty: Noch keine Personen vorhanden
and here the person.yml
title: Person
icon: user
fields:
fullname:
label: Vollständiger Name
type: text
gender:
label: Geschlecht
type: select
options:
male: Männlich
female: Weiblich
unknown: Unbekannt
born:
label: Geburtsdatum
type: date
width: 1/2
birthplace:
label: Geburtsort
type: text
width: 1/2
died:
label: Sterbedatum
type: date
width: 1/2
deathplace:
label: Sterbeort
type: text
width: 1/2
occupation:
label: Beruf
type: text
parents:
label: Eltern
type: pages
multiple: true
query: site.find("people").children
spouse:
label: Ehepartner/in
type: pages
multiple: false
query: site.find("people").children
children:
label: Kinder
type: pages
multiple: true
query: site.find("people").children
notes:
label: Notizen
type: textarea
The table entries are not clickable either.
