Kirby panel not showing all pages

Hey

I’m new to Kirby and struggling to get the panel to show manually created pages.

Here’s what I’m trying to do.

/projects → this is a page that is essentially a collection of links to categories for projects.

/projects/category-a → this is a page that is list of links for that particular category

/projects-category-a/project-1 → this is a particular project detail page

My current issue is that I can’t see anything beyond /projects in my Kirby panel view. All my created subpages and sub-sub-pages are not visible.

Here’s my current file structure for relevant folders:

3_projects folder:
├── 1_category-a
│ ├── 1_project-1
│ │ └── projectdetail.txt
│ ├── 2_project-2
│ │ └── project.txt
│ └── project.txt
├── 2_category-b
│ ├── 1_project-1
│ │ └── project.txt
│ ├── 2_project-2
│ │ └── project.txt
│ └── project.txt
└── projectslist.txt

Blueprints folder:

├── fields
└── pages
├── default.yml
├── project.yml
├── projectdetail.yml
├── projectslist.yml
└── site.yml

Templates folder:

├── default.php
├── home.php
├── project.php
├── projectdetail.php
├── projectslist.php
└── untitled file

And here are some relevant files:

site.yml:

title: Site

sections:
  pages:
    type: pages
    create: default
    status: all
    templates:
      - default
      - home
      - project
      - projectdetail
      - projectlist

projectslist.yml

title: Projects List

columns:
  main:
    width: 2/3
    sections:
      fields:
        type: fields
        fields:
          text:
            type: textarea
            size: huge
          show_in_social_nav:
            label: Show in Social Nav
            type: toggle
          circle_bg_color:
            type: color
            label: Circle Background Color
  sidebar:
    width: 1/3
    sections:
      pages:
        type: pages
        template: projectdetail
      files:
        type: files

projectdetail.yml

title: Project Detail

fields:
  title:
    label: Title
    type: text
  date:
    label: Date
    type: date
    default: today
  role:
    label: Role
    type: text
  featureimage:
    label: Feature Image
    type: files
    max: 1
    width: 1/2
  text:
    label: Prose and Images
    type: blocks
    fieldsets:
      - text
      - image
  tags:
    label: Tags
    type: tags

project.yml

title: Project
fields:
  title:
    label: Title
    type: text
  description:
    label: Description
    type: textarea
    size: medium
  date:
    label: Date
    type: date
    default: today
    time: false
  tags:
    label: Tags
    type: checkboxes
    options:
      tag-a: "Tag A"
      tag-b: "Tag B"
      tag-c: "Tag C"
      tag-d: "Tag D"
      tag-e: "Tag E"
      tag-f: "Tag F"
pages:
      template: project-detail

For clarity:

/projects → this is a page that is essentially a collection of links to categories for projects, this is using the projectslist template

/projects/category-a → this is a page that is list of links for that particular category
this is using the project template

/projects-category-a/project-1 → this is a particular project detail page
this is using the projectdetail template

Nothing past the top level is showing in my Kirby panel and I really would appreciate some guidance! Thanks

Ok, this blueprint should then have a pages section that lists your categories, i.e. template projects, but in reality you use template: projectdetail here.

The blueprint for the category, i,.e. projects.yml should have a pages section with template: projectdetail, but you are using project-detail with a hyphen.

Made those changes, the subpages are now showing, but the 2nd level is still broken (not showing 3rd level pages)

and I’m now getting the following debugging issue but only at the 2nd level on the pages panel trying to load the 3rd level pages:

The section “pages” could not be loaded: Kirby\Cms\Blueprint::normalizeColumns(): Argument #2 ($columns) must be of type array, string given, called in /Users/jordan/Projects/personalsite/kirby/src/Cms/Blueprint.php on line 657

Then you probably have an indentation issue.