bolt / forms

MIT License
21 stars 27 forks source link

Where did subject.html.twig go? #78

Open ghost opened 3 years ago

ghost commented 3 years ago

somewhere in boltforms.yml

templates: form: '@boltforms/form.html.twig' email: '@boltforms/email_table.html.twig' # Replace with @boltforms/email.html.twig to send simple list-based emails. subject: '@boltforms/subject.html.twig' files: '@boltforms/file_browser.twig'

subject.html.twig ... where u go my friend?

vendor\bolt\forms\templates <<<< not here

ghost commented 3 years ago

To answer my own question subject no longer exists as an individual template. Likely there was chosen to have it removed since it contained too little information to warrant an individual template. This also means you can no longer use template logic to fill the string.

The mail subject can only be a merge between the subject_prefix value and the subject value or be blank, and may possibly allow values from the submitted fields. for example it may allow `subject: {NAME} has sent you a mail'

I hope this helps somebody who is looking for an answer.