PHPackages                             basics09/kirby-pagesfilter-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. basics09/kirby-pagesfilter-field

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

basics09/kirby-pagesfilter-field
================================

Apply filter query for all subpages in Kirbys pages field

1.0.1(7mo ago)11MITPHPPHP &gt;=8.2

Since Jun 9Pushed 7mo agoCompare

[ Source](https://github.com/Basics09/kirby-pagesfilter-field)[ Packagist](https://packagist.org/packages/basics09/kirby-pagesfilter-field)[ Docs](https://github.com/)[ RSS](/packages/basics09-kirby-pagesfilter-field/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

Kirby Pages Filter Field
========================

[](#kirby-pages-filter-field)

A simple Kirby CMS plugin that extends the pages field to apply filters to subpages in the page picker dialog.

What it does
------------

[](#what-it-does)

This plugin adds a `pagesfilter` field type that works like the standard `pages` field, but applies your filter rules to all subpages shown in the picker dialog. It uses a `filter` parameter instead of `query` and shows subpages with the filter applied recursively.

Motivation
----------

[](#motivation)

When building navigation menus, you often need to exclude certain pages (like panel structure pages or non-public pages) from the entire site hierarchy. The standard `pages` field only filters top-level pages, not subpages. This plugin applies filters at every level for cleaner page selection.

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

```
composer require basics09/kirby-pagesfilter-field
```

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Kirby CMS 4.3.1+ or 5.0+

Usage
-----

[](#usage)

Use the `pagesfilter` field type in your blueprints:

```
fields:
  navigation:
    type: pagesfilter
    filter: "filterBy('intendedTemplate', 'article')"
    parent: site
    label: Navigation
```

### Filter Examples

[](#filter-examples)

The `filter` parameter uses Kirby's query language:

```
# Only published pages
filter: "filterBy('status', 'listed')"

# Pages with specific template
filter: "filterBy('intendedTemplate', 'article')"

# Exclude certain templates
filter: "filterBy('intendedTemplate', 'not in', ['error', 'please-donot-list-me'])"

# Custom field filtering
filter: "filterBy('featured', true)"
```

Field Options
-------------

[](#field-options)

OptionTypeDefaultDescription`filter``string``null`Filter query to apply to pages and subpages`subpages``bool``true`Always `true` for this field type`query``string``null`Not supported - use `filter` insteadAll other options from Kirby's `pages` field are supported.

Differences from Core Pages Field
---------------------------------

[](#differences-from-core-pages-field)

- Uses `filter` instead of `query` parameter
- Applies the filter to all subpage levels, not just immediate children
- Always shows subpages (use core `pages` field if you don't need this)

How It Works
------------

[](#how-it-works)

The plugin extends Kirby's `PagePicker` to apply your filter query to each parent's `children` property at all page levels, and shows which pages have filtered children available.

Disclaimer
----------

[](#disclaimer)

This plugin is provided as-is with no guarantee. Use at your own risk. Always test thoroughly in a development environment before using in production. If you encounter any issues or have questions, please [open an issue](https://github.com/basics09/kirby-pagesfilter-field/issues) on GitHub.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance65

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~125 days

Total

2

Last Release

211d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2eea667cf0da239af54be0df0cd835e491c437f6b2146c8fe6fd9759657edd2?d=identicon)[ove](/maintainers/ove)

---

Top Contributors

[![ovenum](https://avatars.githubusercontent.com/u/47149622?v=4)](https://github.com/ovenum "ovenum (4 commits)")

---

Tags

kirbykirby-pluginkirby-cms

###  Code Quality

TestsPest

Static AnalysisRector

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/basics09-kirby-pagesfilter-field/health.svg)

```
[![Health](https://phpackages.com/badges/basics09-kirby-pagesfilter-field/health.svg)](https://phpackages.com/packages/basics09-kirby-pagesfilter-field)
```

###  Alternatives

[belugadigital/kirby-navigation

Kirby 5 field for hierarchical menus with drag &amp; drop level indentation.

8713.4k](/packages/belugadigital-kirby-navigation)[bnomei/kirby3-dotenv

Kirby Plugin for environment variables from .env

4144.1k1](/packages/bnomei-kirby3-dotenv)[oblik/kirby-link-field

Kirby 4 field for all types of links.

7650.6k2](/packages/oblik-kirby-link-field)[bnomei/kirby3-recently-modified

Kirby Section to display recently modified content pages

309.3k](/packages/bnomei-kirby3-recently-modified)[moritzebeling/kirby-favicon

Kirby plugin to meet all favicon needs

144.8k](/packages/moritzebeling-kirby-favicon)[tobimori/kirby-tailwind-merge

Tailwind Merge for Kirby CMS

276.3k](/packages/tobimori-kirby-tailwind-merge)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
