A Kirby 3 field plugin to edit KQL Queries
This plugin is completely free and published under the MIT license. However, if you are using it in a commercial project and want to help me keep up with maintenance, please consider buying me caffeine or purchasing your license(s) through my affiliate link.
Download and copy a release (from the release tab) to /site/plugins/k3-query-field
.
git submodule add https://github.com/rasteiner-dist/k3-query-field.git site/plugins/k3-query-field
composer require rasteiner/k3-query-field
In the blueprint:
fields:
myQuery:
type: query
label: My Query
Run a query in a template:
<?php foreach($page->myQuery()->executeQuery(compact('kirby', 'site', 'page')) as $item): ?>
<?= $item->title() ?>
<?php endforeach ?>
MIT
- Roman Steiner (Author)
- dmitrysoshnikov (for his excellent parser generator tool)