-
Notifications
You must be signed in to change notification settings - Fork 36
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
Overriding the confirmation template not working #196
Comments
I've found some strange stuff here... So i thought, lets try Whats strange is that in the code i could not find this parameter. So, or this code is outdated and composer is installing something more new?? |
Please see https://github.com/hybridinteractive/craft-contact-form-extensions/tree/v4?tab=readme-ov-file#overriding-the-confirmation-template. The main branch should be cleaned up, but the actual code comes from the branch v4 or branch v5 depending on craft version. |
Ah, thanks for pointing out! i'm using v4, little confusing haha. The notification email now contains confirmationTemplate: 1643bfae7639758be6c9037252ba2f12a8e0a8da14d2ca4719fba7c03c6092f4/dist/html/contact |
Yeah, that should be adjusted. Feel free to make a separate issue for that. In the meantime you could just call out each item you want to output in the template instead of looping and outputting all of them. |
When passing the
message[template]
the value becomes content within the email. So everyone receives template: alsfjoewiarfwejofjhewaifjewiofcontact in their mail.Docs
I've placed my templates within the /templates/_emails folder.
Tried direct files
{{ hiddenInput('message[template]', 'contact'|hash) }}
tried folder structures
{{ hiddenInput('message[template]', 'dist/html/contact'|hash) }}
Nothing works
The text was updated successfully, but these errors were encountered: