Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form snippet not working with Blade templating #37

Closed
samlinck opened this issue Apr 11, 2024 · 4 comments
Closed

Form snippet not working with Blade templating #37

samlinck opened this issue Apr 11, 2024 · 4 comments

Comments

@samlinck
Copy link

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 **.

@tobimori tobimori added the needs: information ❓ Further information is requested label Apr 11, 2024
@samlinck
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

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

@tobimori tobimori changed the title Undefined variable $slot Form snippet not working with Blade templating Apr 11, 2024
@tobimori
Copy link
Owner

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

@tobimori tobimori removed the needs: information ❓ Further information is requested label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants