I get an error within the Panel from a files section.
It’s setup only pull files from a defined parent but when I add the template
option the error appears:
The section “nyoDownloads” could not be loaded: Array to string conversion
I know it’s probably gonna be a simple fix but I can’t see it and have been banging my head for a few hours now.
site/blueprints/site.yml
title: Site
tabs:
#First Tab
content:
label: Main Pages
icon: page
columns:
- width: 1/3
sections:
nyoDownloads:
type: files
label: NYO Document Downloads
image: icon
empty: No download files yet
parent: site.page("downloads")
template: document_upload
I can remove the error by changing template to templates but then no template is added to the uploaded file.
site/blueprints/files/document_upload.yml
title: Document Upload
accept:
extension: pdf, doc, docx
columns:
main:
width: 1/2
sections:
content:
type: fields
fields:
description:
label: Description
type: textarea
buttons: false
size: medium
Kirby 3.7.3 and 3.8.0
PHP 8.0.24