Different templates folder as pages

Hi
On Kirby 3.3.5, I would like to set two different templates as pages on site.yml. But the second one is on a subfolder.

pages.txt are all in site/…
projets.txt are all in site/bureau/…

I set :

 categories:
    headline: Catégories
    type: pages
    create: false
    sortable: false
    templates:
      - pages
      - projets

Do I forgot something ? (Only pages are visible here)

A pages section can only have a single parent, so what you are trying here is not possible.

If this section is purly for displaying pages, check out the Pagesdisplay section plugin.

Ok, I’ve set

mysection:
  headline: Projets
  type: pagesdisplay
  query: site.find('pages') <= I tried multiple pages

Any pages are displaying in the section. Is this plugin compatible with 3.3.5 ?

That would only find a page called “pages”, which doesn’t make sense. Try:

query: site.pages.add(site.find('bureau').children).listed.filterBy('template', 'in', ['pages', 'projects'])

This should get all first level pages plus all children of the bureau page, filtered by status listed and templates pages and projects.

Thanks I’m just discovering the query synthax and all makes sense all of a sudden !
<3