page.index.filterBy not working

Hi everybody

As you can see, I can fetch the template info in the blueprint. But what ever I’m trying with the query, I always get every child page. What am I doing wrong?

CleanShot 2022-08-10 at 11.56.34

        headline: All Artists
        type: pages
        query: page.index.filterBy('template', 'artist')
        status: listed
        limit: 100
        sortable: true
        info: '{{ page.template }}'
          back: white
          cover: true

You can’t use queries with sections. If you want to select pages out of a set, use a pages field. Otherwise, the pagesdisplay plugin could be your friend: PagesDisplay Section | Kirby CMS

But note that it doesn’t allow adding pages.

Okay. Thank you for the quick response.