Hello everyone,
I got an issue with displaying “cover” thumbnails from single projects, I have a projects.yml blueprint containing overview of single projects (project.yml):
....
drafts:
extends: sections/projects
headline: Entwurf
status: draft
unlisted:
extends: sections/projects
headline: Vorschau
status: unlisted
listed:
extends: sections/projects
headline: Veröffentlicht
status: listed
size: medium
layout: cards
...
section/projects.yml looks like this:
type: pages
headline: Projekte
parent: kirby.page("projekte")
info: "{{ page.published }}"
template: project
empty: Keine Projekte
sortBy: date desc
image:
query: page.cover
cover: true
ratio: 3/2
project.yml is blueprint with single project, it looks something like this with cover field:
....
sidebar:
width: 1/3
sections:
cover: fields/cover
....
fields/cover.yml looks like this:
type: files
headline: Cover
layout: cards
info: "{{ file.dimensions }}"
template: cover
min: 1
max: 1
As said, while in panel using project.yml cover field works great, I somehow can’t get thumbnails from project.yml to be shown in projects.yml page. What have I done wrong, I thought page.cover from section/projects.yml would fetch the cover field from project.yml and fields/cover?