Review main Abandoned

21105[FEATURE] Properly list multiple elements in notification mails

Helmut Hummel CR 0 V 0 Normal +97 −38 updated 08/27/14, 16:43

Commit message

The current notification mailer cannot properly handle notification
mails for multiple elements. It seems that the code was never
intended to handle notification of multiple elements at once.

This patch adds a subtemplate for each changed record, all changed
records are listed in a proper list in the notification mail. The
subtemplate file is set with the config option
'stageNotificationEmail.messageMultipleElementRow'

The following markers can be used in the subtemplate:
'###ELEMENT_NUMBER###'
'###ELEMENT_TITLE###'
'###ELEMENT_KEY###'
'###ELEMENT_PATH###'
'###ELEMENT_PREVIEW###'
'###ELEMENT_SPLITTED_PREVIEW###'

The list is added to the message template with a new marker
'###CHANGED_ELEMENTS###'. The patch is fully compatible with old
style message templates as well. All old markers are now also
correctly filled with info on all records.

The subject and message templates are also improved to look better
for multiple records.

Additionally this patch adds a config option to set the crop limit
of record paths 'stageNotificationEmail.cropPathTitlesAfter'.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 3