Using this guide (https://getkirby.com/docs/cookbook/one-pager) I’ve been building a one page site, most everything works fine but the PANEL interface is not showing the fields I’ve put in the /content/1-products/home.txt no matter what I do. This is probably a newbie mistake but I’m stuck and can’t figure this one out.
I’ve:
re-uploaded the /panel
re-uploaded the /site
set permissions to 755 on everything
The home.txt looks like this:
Title: Quality contact lenses
----
Text: We carry an extensive range of daily, fortnightly.
----
Subtitle: Premium lenses & coatings
----
Subtext: We use the full range of lens designs .
----
When I load the site it all loads and displays correctly, the <?= $data->subtitle()->html() ?> can see and load the content into the snippets I’ve built. however, none of the pages are loading the fields from the .txt into the Pages of the Panel Interface.
I knew it was something simple, I was looking in the wrong place. Found the blueprints in /site/blueprints/ and most of it is working now. Having a bit of trouble with the Contact Page, it’s only showing half the fields I defined in the blueprints.
Yaml is sensitive to indentation. Look for the last field that displays properly in the panel, and check the indentation in blueprint from that field downwards.
Here’s the blueprint I’m only using a few of the fields. I’m not usign anything below ‘contactoptions’ however, the panel stops loading at subtitle.
title: Contact
pages: false
options:
delete: false
status: false
fields:
title:
label: Title
type: title
maintitle:
label: Main Title
type: text
subtitle:
label: Subtitle
type: text
text:
label: Text
type: textarea
hours:
label: Hours
type: textarea
contactoptions:
label: Contact Options
type: structure
style: table
fields:
title:
label: Title
type: text
icon:
label: Icon
type: image
text:
label: Text
type: text
url:
label: URL
type: text
linktext:
label: Link Text
type: text