I was using the Kirby 3 SEO Plugin for a client project, however the client noticed that the plugin wasn’t working with subpages of pages. It’d just display the information for the parent page. I decided to switch over to MetaKnight as I thought it was an issue with the plugin plus it seems more robust.
However, upon testing the new plugin, it’s also throwing errors with subpages of pages! I’ve followed the instructions for setup on the github README
and added it to both the parent of a subpage like so:
Parent Page: Projects.yml
title: The Center
extends: layouts/triple-structure
tabs:
main:
sections:
description:
type: fields
fields:
text:
label: The Center Description
hpfeatured:
label: Featured Projects
help: Select projects to feature on the homepage. To choose episodes for each project, visit the project page itself.
min: 1
max: 5
type: structure
fields:
hpoption:
type: select
options: query
query:
fetch: page.children.published
value: "{{ page.id }}"
subpage:
label: Edit Projects
sections:
drafts:
extends: sections/projects
unlisted:
extends: sections/projects
headline: In Review or Unlisted
status: unlisted
listed:
extends: sections/projects
headline: Published Projects
status: listed
seotab: seo
and it works properly in that case:
But when it’s instead added to the child page of that subpage like in Project.yml
title: Project
icon: 🖼
status:
draft: true
unlisted: true
listed: true
extends: layouts/triple-structure
tabs:
subpage:
label: Edit Episodes
sections:
drafts:
extends: sections/episode
unlisted:
extends: sections/episode
headline: In Review or Unlisted
status: unlisted
listed:
extends: sections/episode
headline: Published Episodes
status: listed
main:
label: Edit Project Page
sections:
description:
type: fields
fields:
text:
label: Project Description
featured:
label: Featured Episode
help: Select episode to represent the project if selected for the homepage.
type: select
options: query
query: page.children.published
seotab: seo
It throws an error:
http://kevincadena.com/lcac/public/la-galeria/artist-portraits
When I inspect the subpage, it seems like all the metadata is being transferred from the panel so I don’t understand what the error could be. Does anyone in here have a idea what the issue is?