Open Matoseb opened 1 month ago
I always assumed it was compatible (minus the built-in snippets, of course) and the API mode was specifically to support custom forms in headless setups. I will take a look when I find time.
I tried to query the forms page directly using KQL. But this was pointless. You may close this issue.
I always assumed it was compatible (minus the built-in snippets, of course) and the API mode was specifically to support custom forms in headless setups. I will take a look when I find time.
It is! I even query the HTMX inside my Vue/Nuxt App 😅 instead of using the API. For anyone interested:
I'm rendering a dedicated php template to send the htmx:
...
// query https://cms.kirby.example/mypage?form=page%3A%2F%2F134567
$uuid = get('form');
if($uuid == null) {
throw new Exception('"form" query is required');
}
$uuid = urldecode($uuid);
snippet('dreamform/form', [
'form' => page($uuid),
...
I just noticed that using KQL is not really possible, since models are not supported yet (I made an issue for that in the past). If you'd like to use KQL, you'd have to write a custom method that queries all fields depending on the type. Maybe I can add a toKqlArray method or something in the future, I will keep this open as a reminder to investigate it at some point...
Hello I get this error while fetching the site page using Nuxt KQL x Headless Kirby. The website has multilanguage. Is the plugin compatible with this workflow?