forms icon indicating copy to clipboard operation
forms copied to clipboard

Where did subject.html.twig go?

Open Puddingboy opened this issue 3 years ago • 1 comments

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

Puddingboy avatar Jul 13 '21 15:07 Puddingboy

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.

ghost avatar Sep 16 '21 07:09 ghost