Skip to content
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

Where did subject.html.twig go? #78

Open
Puddingboy opened this issue Jul 13, 2021 · 1 comment
Open

Where did subject.html.twig go? #78

Puddingboy opened this issue Jul 13, 2021 · 1 comment

Comments

@Puddingboy
Copy link
Contributor

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant