Closed parislettau closed 1 year ago
The docblock comment needs to be before the method, not inside it:
Kirby::plugin('lettau/custom-site-methods', [
'siteMethods' => [
/**
* @kql-allowed
*/
'venues' => function () {
If you use the option syntax, I think it should be Kirby\Cms\Site::venues
instead of siteMethods::venues
.
@parislettau does this answer your question?
Hi there – I've created a custom site method that I would like to query but am have trouble doing so. The custom site method works from the Kirby instance.
Here's my method:
I have tried to allowed methods in the config as follows:
I make the following query from KQL:
But nothing is returned: