Martin M
-
Posts
4 -
Joined
-
Last visited
Posts posted by Martin M
-
-
I finally got to try out the new method for custom templates. It seems that it finds the template (no warning when submitting the form that it can't find it, $mail->send() is successful), but the part that loads the template doesn't check the custom templates directory. In fact this error goes to the email recipient:
Warning: include(/var/www/pw/site/modules/FrontendForms/email_templates/email_template.html): Failed to open stream: No such file or directory in /var/www/pw/site/modules/FrontendForms/Formelements/Form.php on line 444 Warning: include(): Failed opening '/var/www/pw/site/modules/FrontendForms/email_templates/email_template.html' for inclusion (include_path='.:/usr/share/php') in /var/www/pw/site/modules/FrontendForms/Formelements/Form.php on line 444
-
I meant backend not backup (not seeing the ability to edit a post)
-
Thank you for making this. Forms being locked behind a paid module was an issue for me so I'm glad this exists.
Can we choose a different directory for a custom email template? I created a custom one in site/modules/FrontendForms/email_templates/ but when I updated the module from the ProcessWire backup, the template file was removed.
I'd love to store the email template in site/templates/
FrontendForms - A module for creating and validating forms on the frontend
in Module/Plugin Development
Posted
It has indeed solved the issue, thanks!