When I upload an image via a custom blueprint, called Series, in Panel it gets correctly saved.
The image is being saved into content/ralph-the-mighty/ plus its associated text file.
If I try to preview or delete the image, I get an error like this –
" The requested resource /panel/dropdowns//pages/ralph-the-mighty/files/ralph1.webp?view=list&update=true&delete=true was not found on this server."
Specifically invoking kirby/router.php seems to have done something – on the Series blueprint page in Panel, I’m now getting webp image thumbnails and the proper file view.
(Still not getting image thumbs in the Site blueprint in Panel, but that’s at least a separate problem which I can investigate).
For reference, when starting the localhost server, I had simply been calling php -S localhost:8000
Site.yml
(I’m aware the image query is very likely not the correct call on this page; just haven’t identified what the correct call should be yet…)
title: Site
# The layout of this form has two columns:
columns:
- width: 2/2
sections:
#pages (most recent)
#collections (draft + unlisted, sorted by most recent)
- width: 1/2
sections:
series-active:
headline: Series
type: pages
label: Active
status: published
templates: series
layout: cardlets
image:
query: page.images.template("cover").first
cover: true
ratio: 2/3
series-inactive:
type: pages
label: Unreleased
status: draft
templates: series
layout: list
image:
query: page.images.template("cover").first
cover: true
- width: 1/2
sections:
pages:
type: pages
create: default
templates:
- about
- home
- default
Theoretically, the query should work, provided that the given page has an image with the template cover assigned. When you expect ralph1.webp.txt what do you see inside?
Ahh hahahahahah - just noticed this comment on the Local Development Environment cookbook page…
While using the built-in server works fine for many use cases, you might sometimes run into issues. We therefore don’t really recommend this environment.