When I try to create a page using the panel, the txt file in the content folder is always created with the name 1.txt
I am sure there is something simple I am doing wrong but wondered if someone could point me in the right direction.
This is my page blueprint.
title: Book
columns:
- width: 1/2
sections:
info:
type: fields
fields:
Book_Summary:
type: textarea
Description:
type: textarea
PaperbackPrice:
type: number
step: .01
help: Do not include the £ sign
SumupLink:
type: text
label: SumUp Payment Button Link
Postage:
type: text
KindlePrice:
type: number
step: .01
help: Do not include the £ sign
KindleLink:
type: url
- width: 1/2
sections:
images:
type: files
layout: cards
ratio: 1:1
pages:
create: true
status: all
templates:
- book
Looks like an indentation error.
Don’t:
pages:
templates:
- book
👆
Do:
pages:
templates:
- book
👆
Additionally there are two smaller other “issues”:
Setting create: true
in a pages section doesn’t make sense. You can set this either to false
to prevent adding new pages, or pass an array of allowed templates as argument
The ratio
option here doesn’t have an effect, ratio
can only be used as subprop of the image
option: http://getkirby.com.test/docs/reference/panel/sections/files#preview-images
Thank you both for your replies. It is now working.