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

Feature request - Allow for per-site configuration of the mail notification template #427

Open
cyChop opened this issue Jul 25, 2021 · 4 comments

Comments

@cyChop
Copy link

cyChop commented Jul 25, 2021

I'm not entirely sure this is feasible, but this would be a great idea to customize the mail notification template from the site config. It would help for multilingual/non-English websites.

Thanks for the great work on Staticman!

@hispanic
Copy link

I believe this is a duplicate of #173 (now closed, for some reason). FWIW, I have implemented the described functionality in my fork - hispanic#4

@cyChop
Copy link
Author

cyChop commented Jul 26, 2021

Indeed, you're right. I had searched on open issues only…

Your reaction time's impressive too. I think I may have a closer look to staticwoman. :)

@cyChop
Copy link
Author

cyChop commented Aug 15, 2021

I had a look at Staticwoman's implementation and I realize I haven't been clear about the feature I had in mind: it would be nice if a Staticman instance could have several mail templates, depending on the profile being used.

My own use-case is a multilingual site, but all notifications must be sent in English (which sort of defeats the purpose of a multilingual site). Another use-case is if a server is used for several websites, maybe some sites would love a custom template and so on. So, having a possibility to set it from the site config would be great!

@hispanic
Copy link

Gotcha'. That would definitely be a step beyond. You might want to consider re-titling your issue to better describe the goal.

@cyChop cyChop changed the title Feature request - Allow for configuring the mail template for Mailgun notifications Feature request - Allow for per-site configuration of the mail notification template Aug 17, 2021
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

2 participants