# Filter by blueprint

**URL:** <https://forum.getkirby.com/t/filter-by-blueprint/1830>\
**Category:** Questions\
**Tags:** v2\
**Created:** [August 15, 2015, 7:45pm UTC](https://forum.getkirby.com/t/filter-by-blueprint/1830 "2015-08-15T19:45:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinus](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tinus/32/7851_2.png) [@tinus](https://forum.getkirby.com/u/tinus)\
**Post date:** [August 15, 2015, 7:45pm UTC](https://forum.getkirby.com/t/filter-by-blueprint/1830/1 "2015-08-15T19:45:39Z")

</div>

Would it be possible to add blueprint as a possible way to filter things?

this:

```
kirby()->site()->index()->filterBy('template', 'product');

```

doesn’t work if the page has a product blueprint but uses default.php as a template.

this:

```
kirby()->site()->index()->filterBy('blueprint', 'product');

```

Doesn’t do anything but it would be nice if it did.

I now have to add redundant templates that do the same as default.php because otherwise I can’t filter pages that have a different blueprint.

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [August 15, 2015, 8:18pm UTC](https://forum.getkirby.com/t/filter-by-blueprint/1830/2 "2015-08-15T20:18:14Z")

</div>

The Kirby core (`kirby` folder) doesn’t know anything about blueprints from the Panel, but your use-case is covered by “intended templates” (the template set in the text file name):

```php
kirby()->site()->index()->filterBy('intendedTemplate', 'product');

```

---

<div class="post-metadata">

**Author:** ![tinus](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tinus/32/7851_2.png) [@tinus](https://forum.getkirby.com/u/tinus)\
**Post date:** [August 18, 2015, 4:59pm UTC](https://forum.getkirby.com/t/filter-by-blueprint/1830/3 "2015-08-18T16:59:18Z")

</div>

Ah great, exactly what I needed. Thank you very much.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:04pm UTC](https://forum.getkirby.com/t/filter-by-blueprint/1830/4 "2025-02-06T17:04:33Z")

</div>

Archived on February 6, 2025, 5:04pm UTC


