[MGNLOBS-27] sendMailOnPageChanges listener doesn't have a mail template Created: 25/Apr/14  Updated: 27/May/14  Resolved: 23/May/14

Status: Closed
Project: Observation
Component/s: None
Affects Version/s: 2.0.1
Fix Version/s: 2.0.2

Type: Bug Priority: Major
Reporter: Antti Hietala Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File config.modules.mail.config.templatesConfiguration.pageChangeNotification.xml     XML File config.modules.observation.config.listenerConfigurations.sendMailOnPageChanges.xml     File pageChangeNotification.ftl    
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Observation module bootstraps a sendMailOnPageChanges listener but doesn't provide a mail template. So the listener doesn't work and the user basically needs to write their own template.

Provide an email template script, template configuration, and a listener configuration that work with minimal changes (correct recipient address) out of the box.

Find an example template attached. The script is very basic. Please add a model class similar to info.magnolia.module.commenting.PageCommentNotifModel to make the notification more informative:

  • Name of the user who edited the page
  • Link to the page that was changed
  • Timestamp when the page was edited

Something like:

User <username> changed page <page path and name, link> at <timestamp>.



 Comments   
Comment by Federico Grilli [ 23/May/14 ]

Could not provide a link to the page as no web context is available when running the listener

Generated at Mon Feb 12 10:23:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.