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
contact form #16
Comments
I have a similar problem. Although the form.html.twig is there in the skeleton. I have found that when I use the form.html.twig from antimatter it allows sending the mail but the one that has come default with the theme it does not send mail. Using the one from antimatter screws up the layout's look and feel and hence am left with either an ugly contact form or one that isn't working. Please can someone provide any guidance on how to make the contact form working on this theme? |
I compared the form.html.twig of form plugin and this theme and then made few changes. This has made the contact form work.
form.html.twig after my changes looks as below:
|
Does it works for someone? I have still the same problems with sending mail. cli works |
Some restructuring, formatting improvements. Tested with Grav v1.2.4, Form v2.7.0, Email v2.6.0, and Agency v1.4.0. Users should include a '/user/pages/01.home/thankyou/formdata.md' (per https://learn.getgrav.org/forms/forms/reference-form-actions#display) to verify that mails are sent on front-end.
I had many problems to make it work. A solution I found was to follow pubmania's changes, but I also added the following code under line 54 {% include "forms/fields/formname/formname.html.twig" %} |
The changes I did earlier stopped working recently so I returned back to this page and I then added on line 54 the code suggested by @walkero-gr and it is working again. I have also checked by replacing the /user/themes/agency/templates/modular/form.html.twig with that amended by @OleVik Fix#16#17 and it works perfectly fine too. Although I do get worried with this manual approach - Why can't these changes be updated on the theme so users don't have to make these manually? Is there anything wrong with this approach? |
There is not really a problem with the approach, but rather that changes need to be merged into the theme. We could ask @flaviocopes to do a review of #17, and consider the addition of the suggestion by walkero-gr above. |
Some restructuring, formatting improvements. Tested with Grav v1.2.4, Form v2.7.0, Email v2.6.0, and Agency v1.4.0. Users should include a '/user/pages/01.home/thankyou/formdata.md' (per https://learn.getgrav.org/forms/forms/reference-form-actions#display) to verify that mails are sent on front-end.
Hey.
When working with this skeleton, I found a problem with the contact form. You forgot to add to the theme files form.html.twig and formdata.html.twig this led to the fact that sending a message from the contact form resulted in an error that the file was not found. No message was sent Thank you.
The text was updated successfully, but these errors were encountered: