I’m making a portfolio website and on the homepage, I have it so that you can select project pages to add to a slideshow. Like so:
Home.yml
<?php if(!defined('KIRBY')) exit ?>
title: Home
pages: false
fields:
titleline:
label: Url Information
type: headline
title:
label: Page title (H1)
type: text
width: 1
slideline:
label: Slideshow Information
type: headline
slidetwo:
label: Slide 2
type: select
options: query
width: 1/2
query:
label:
page: projects
fetch: children
value: '{{uri}}'
text: '{{title}}'
required: true
slidetwoimg:
label: Slide 2 Image
type: image
width: 1/2
required: true
slidethree:
label: Slide 3
type: select
options: query
width: 1/2
query:
label:
page: projects
fetch: children
value: '{{uri}}'
text: '{{title}}'
required: true
slidethreeimg:
label: Slide 3 Image
type: image
width: 1/2
required: true
slidefour:
label: Slide 4
type: select
options: query
width: 1/2
query:
label:
page: projects
fetch: children
value: '{{uri}}'
text: '{{title}}'
required: true
slidefourimg:
label: Slide 4 Image
type: image
width: 1/2
required: true
slidefive:
label: Slide 5
type: select
options: query
width: 1/2
query:
label:
page: projects
fetch: children
value: '{{uri}}'
text: '{{title}}'
required: true
slidefiveimg:
label: Slide 5 Image
type: image
width: 1/2
required: true
The problem is that I accidentally deleted the original projects page. I made a new one with the same projects template but nothing will drop down in the panel field anymore which now throws an error on my homepage because I require the slideshow. Is there a way to fix this?