# Blueprint Pages filterBy not working

**URL:** <https://forum.getkirby.com/t/blueprint-pages-filterby-not-working/27916>\
**Category:** Questions\
**Tags:** v3\
**Created:** [February 21, 2023, 10:55am UTC](https://forum.getkirby.com/t/blueprint-pages-filterby-not-working/27916 "2023-02-21T10:55:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dennissnellenberg](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dennissnellenberg/32/11680_2.png) [@dennissnellenberg](https://forum.getkirby.com/u/dennissnellenberg)\
**Post date:** [February 21, 2023, 10:55am UTC](https://forum.getkirby.com/t/blueprint-pages-filterby-not-working/27916/1 "2023-02-21T10:55:04Z")

</div>

I like to list all pages with a specific template name in a pages section. Not sure what I am doing wrong. Kirby version: 3.9.1. I tried the following:

```auto
locations:
  headline: Locations
  type: pages
  query: site.index.filterBy('template', 'in', ['locations-single', 'locations-single-coming'])
  create: false

locations:
  headline: Locations
  type: pages
  query: site.index.filterBy(template', '*=', 'locations-single)
  create: false

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 21, 2023, 11:01am UTC](https://forum.getkirby.com/t/blueprint-pages-filterby-not-working/27916/2 "2023-02-21T11:01:57Z")

</div>

Your second example has some quotes missing.

But you want to use `intendedTemplate` instead of `template`.

---

<div class="post-metadata">

**Author:** ![dennissnellenberg](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/dennissnellenberg/32/11680_2.png) [@dennissnellenberg](https://forum.getkirby.com/u/dennissnellenberg)\
**Post date:** [February 21, 2023, 11:56am UTC](https://forum.getkirby.com/t/blueprint-pages-filterby-not-working/27916/3 "2023-02-21T11:56:50Z")

</div>

I tried your suggestion but still no results.  
I also pasted the rest of the blueprint, maybe I am doing something wrong there

I used `parent: site.find('home')` before. But now I need only specific templates, not all children.

```auto
title: Homepage
icon: 🏠

columns:
  - width: 2/3
    sections:

      locations:
        headline: Locations
        type: pages
        query: site.index.filterBy('intendedTemplate', 'in', ['locations-single', 'locations-single-coming'])
        create: false

      locations:
        headline: Locations
        type: pages
        query: site.index.filterBy('intendedTemplate', '*=', 'locations-single')
        create: false

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 21, 2023, 12:08pm UTC](https://forum.getkirby.com/t/blueprint-pages-filterby-not-working/27916/4 "2023-02-21T12:08:51Z")

</div>

You are using sections and sections don’t have a query property, only a parent. You would have to use a plugin:

> **[PagesDisplay Section](https://getkirby.com/plugins/rasteiner/pagesdisplay)**
>
> Display any page list in a section. Any parent, many parents, filtered, don't care.
