定制 hananils/kirby-list-filters 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hananils/kirby-list-filters

最新稳定版本:1.0.0

Composer 安装命令:

composer require hananils/kirby-list-filters

包简介

Kirby allows for the storage of value lists using its select, tags or checkboxes fields but it doesn't offer ways to filter items by those values. List Filters closes this gap by providing includes and excludes collection filters.

README 文档

README

Kirby List Filters

Kirby allows for the storage of value lists using its select, tags or checkboxes fields but it doesn't offer ways to filter items by those values. List Filters closes this gap by providing includes and excludes collection filters.

Note

Please check out the online documentation at kirby.hananils.de/plugins/list-filters for further information.

Usage

The plugin adds the following filters:

  • includes: finds items including the given values (like in_array)
  • includes some: finds items including some of the given values
  • includes all: finds items including all of the given values
  • excludes: finds items excluding the given values (like in_array)
  • excludes some: finds items excluding some of the given values
  • excludes all: finds items excluding all of the given values

Examples

$plugins = $plugins->filterBy('category', 'includes all', ['field', 'section']);

Options

  • hananils.list-filters.insensitive: defaults to true, set to false if you want to enable case sensitive matching.

Installation

Download

Download and copy this repository to /site/plugins/list-filters.

Git submodule

git submodule add https://github.com/hananils/kirby-list-filters.git site/plugins/list-filters

Composer

composer require hananils/kirby-list-filters

License

This plugin is provided freely under the MIT license by hana+nils · Büro für Gestaltung.
We create visual designs for digital and analog media.

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-25