Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17470

Notification Email template doesn't work properly with custom Event descriptor

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      The default notification email template makes some assumptions regarding that does not fit properly with our best practices:
      1. it assumes that the descriptor application name, is a real name and not a translation key (which is contradicted by https://extensions.xwiki.org/xwiki/bin/view/Extension/Notifications%20API/#HRecordableEventDescriptor)
      2. it uses some translations keys with the following pattern:

      "notifications.events.${event.type}
      

      which is not conform with our translation key best practices (cf https://dev.xwiki.org/xwiki/bin/view/Community/DevelopmentPractices#HTranslationBestPractices).
      I guess we should at the very least provide some macros that would allow to inject the proper key prefixes or directly the values to use there. And document it properly.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: