-
New Feature
-
Resolution: Fixed
-
Minor
-
2.8, 2.9, 3.0
-
MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_30_STABLE
-
MDL-49682-master -
Easy
-
The current forum email template is not editable except through core hacks.
Bits of the text are distributed across several language strings.
My use case is that we want to top and tail the forum content with some contextual text about the site it is coming from (add language), while others seem to have layout constraints discussed here:
https://moodle.org/mod/forum/discuss.php?d=254183
The proposal seems to be to move the function to a renderer so that it can be over-ridden.
This would allow the layout to be determined in the theme and for additional language strings to be added here as well and so seems to address both use cases.
Current functions that generate this:
- forum_make_mail_html
- forum_make_mail_text
- forum_make_mail_post
Considerations
The digest calls the forum_make_mail_* copy so this would be impacted by the same renderer. It might be that passing a digest parameter would give more flexibility to altering the display if required.
- caused a regression
-
MDL-53509 Digest mails have broken bynameondate
-
- Closed
-
-
MDL-52137 Forum digest emails contain incorrect links and duplicated information
-
- Closed
-
-
MDL-53622 @@PLUGINFILE@@ appears in the HTML body of a forum email notification.
-
- Closed
-
-
MDL-52126 Mustache template over-escaping in forum emails
-
- Closed
-
-
MDL-52136 User fullname or course shortname with double quote breaks forum emails
-
- Closed
-
-
MDL-52563 Forum Digest summary email contains a semi-colon
-
- Closed
-
-
MDL-52664 Incorrect URL in mod/forum get_unsubscribediscussionlink
-
- Closed
-
- has a non-specific relationship to
-
MDL-29738 Remove unused stylesheet hook
-
- Closed
-
- is duplicated by
-
MDL-50477 Forum email markup should use a renderer for it's output
-
- Closed
-
- will help resolve
-
MDL-29152 No link to CSS is included in html mail sent to subscribers.
-
- Closed
-