tobimori / kirby-dreamform

✨ DreamForm is an opiniated form builder plugin for Kirby CMS that makes forms work like magic
https://plugins.andkindness.com/dreamform
44 stars 7 forks source link

Form snippet not working with Blade templating #37

Closed samlinck closed 6 months ago

samlinck commented 6 months ago

Error location: /var/www/html/site/plugins/kirby-dreamform/snippets/fields/partials/wrapper.php

When I follow the instructions from Using Forms I get Undefined variable $slot .

samlinck commented 6 months ago

Hi I don't have much more info except that I used your snippet in a blade file after going to the installation as described in the docs. If I go into the plugin and comment that part, I can submit the form as expected.

tobimori commented 6 months ago

The included form snippets use slots: https://getkirby.com/docs/guide/templates/snippets#passing-slots-to-snippets I think the issue in this case is on the Blade template engine.

tobimori commented 6 months ago

I've sent you a message on Discord, maybe we can work it out together.

tobimori commented 6 months ago

I made a PR to the Blade repo that should fix the issue: https://github.com/lukasleitsch/kirby-blade/pull/35 - please test it and let me know if it works!