Addpixel / KirbyComments

[Kirby 2] File-based comments stored as subpages for the Kirby CMS.
MIT License
68 stars 4 forks source link

Change email.template.txt without modifying the core one #5

Closed malvese closed 8 years ago

malvese commented 8 years ago

Is there a way to use a copy of this file, so it would not be overwritten when the plugin is updated? Thanks

florianpircher commented 8 years ago

This is a very good point. I’ll see, what alternatives would be best. Suggestion are most welcome.

malvese commented 8 years ago

Perhaps making it a snippet? I was happy to see I could override comments.php by copying it in the right folder :)

florianpircher commented 8 years ago

Yes, the comments.php snippet serves as a production ready example usage of the Kirby Comments plugin, so users of the plugin are encouraged to use it as such an example and write their own comments form/list.

I’m still unsure about the correct method of storing the email template (snippet, template, page, configuration, …).

florianpircher commented 8 years ago

This is now fixed in 1.1.5.

The best solution I found was declaring the email.template.txt file as plugin asset, so users can create alternative assets in assets/plugins/comments/. Instructions on how to customise the email-body-template file can be found in the README. More about customising plugin assets in the Kirby docs.