Filter by folders in blueprints

Hi,
might be a duplicate, but I’m struggling on something:
I’m building the site.yml for my admin panel that displays two columns : one for a certain set of pages, the other one for the “projects”.

So here is my site.yml :

title: Site

columns:
  sidebar:
    width: 1/3
    sections:
      pages:
        label: Administration
        type: pages
  main:
    width: 2/3
    sections:
      project: sections/projects
        type: pages
        create: default
        label: Projets & compagnie

I also made a projects.yml in sections :

type: pages
layout: cards
template: album
query: kirby.page("projects")
template: project
empty: No albums yet
image:
  query: page.cover
  cover: true
  ratio: 5/4

The content folder is like that :

but my homepage still look like that:

I must be missing something, but I don’t really know what…

Thanks for the help

The problem is that your projects.yml section uses a query (which is not supported). Instead, you have to provide the parent:

type: pages
layout: cards
template: album
parent: kirby.page("projects")
template: project
empty: No albums yet
image:
  query: page.cover
  cover: true
  ratio: 5/4

Additionally, remove type, create and label from your project section in site.yml

Alright, the major issue seemed to be type, create and label in my site.yml.
Thanks ! :slight_smile: