Hello,
I have a setup using an sqlite database for content. This worked fine in Kirby 3.
With Kirby 4 I have modified the setup (following the guide Content from a database | Kirby CMS). Basically this involves just changing the functions for the child page model.
I can make my list of pages (or comments) appear, and also edit those pages, however I have a problem when adding pages.
For my page section, if I use the correct template property name my pages from the database appear, but if I add a page the following error is thrown:
TypeError: n is undefined post http://omnitype.test/local/media/panel/c9e4dc50b8d6ed20385fdca95873b3a5/js/index.min.js:2
My comments page blueprint:
title: Comments
sections:
comments:
label: Comments
type: pages
info: '{{ page.user }}'
template: comment
If I use the incorrect template name (capitalized), then I can add pages fine, but then nothing appears in my comments section:
title: Comments
sections:
comments:
label: Comments
type: pages
info: '{{ page.user }}'
template: Comment
I have too much code to share here, but in a nutshell it’s taken directly from the guide above. Can anyone help me understand why this is happening?
Thanks