Filter / exclude in pages blueprint

Dear kirby community,

i would like to group my pages overview in the panel startpage like this (right side):
https://kirbysites.com/media/pages/jonas-rebmann/1643572272-1583232266/site.jpg

To achieve this i tried several things, but it doesn’t work. Like this below shows me my News page children,

parent: site.find("news")

I dont want to have the children of the page, only the page itself - like a navigation in the sample screenshot.

My theory was:

sections:
  part1:
    type: pages
    parent: site.find("home","news","projects")
  part2:
    type: pages
    parent: site.find("imprint","contact","legal")

No luck with this :frowning:
Any recommendations?

A pages section can only have a single parent. In the example screenshot, “Gesetzlich” and “Inhalte” are first level pages (i.e. folders directly in the /content folder), grouped by template, while the Projekte section shows subpages of a projects page

sections:
  part1:
    type: pages
    templates:
      - legal
  part2:
    type: pages
    templates:
      - default
  projects:
    type: pages
    parent: site.find('projects')

Hey @texnixe, superfast answer :slight_smile:

Templates was what im looking for. Thank you so much!

Another question: Is it possible to show “all” pages and exclude one or more?

Unfortunately, there is no way to do it the other way round, so you would have to actually list all templates you want.

Unless you don’t need to add new pages to such a section, in which case you could use this plugin: https://getkirby.com/plugins/rasteiner/pagesdisplay, which allows you to query pages.

Okay thanks, you helped me anyway :slight_smile: