Oeps.. you are right 😊 Question still stands though. Is it possible to add more information in the alertsmails. -----Oorspronkelijk bericht----- Van: Morten Brekkevold <morten.brekkevold@uninett.no> Verzonden: dinsdag 15 september 2020 15:15 Aan: René Romijn <Rene.Romijn@tabsholland.nl> Onderwerp: Re: Extra info in alertmails On Mon, 14 Sep 2020 07:32:05 +0000 René Romijn <Rene.Romijn@tabsholland.nl> wrote:
Is it possible to add some more information in the alertmails? For example add Room?
Hi René, I suspect you meant to send this to nav-users@uninett.no, not nav-users-request@uninett.no? -- sincerely, Morten Brekkevold Uninett
On Tue, 15 Sep 2020 13:17:33 +0000 René Romijn <Rene.Romijn@tabsholland.nl> wrote:
Oeps.. you are right 😊
Question still stands though. Is it possible to add more information in the alertsmails.
Indeed you can. All the alert message templates for e-mail, SMS and so forth can be found in the directory structure below etc/alertmsg/. Here you will find a hierarchy of Django template files in directories subdivided by event types. It helps to be familiar with NAV's data model to make efficient use of customizations here. E.g. if you want to include room details in your boxDown e-mail notifications, you would edit the etc/alertmsg/boxState/boxDown-email.txt template and add `{{ netbox.room.id }}` wherever you want your room id to appear in the message text. -- sincerely, Morten Brekkevold Uninett
Hi Morten, Thanks for the quick reaction! I will check It out. Van: Morten Brekkevold <morten.brekkevold@uninett.no> Verzonden: dinsdag 15 september 2020 15:45 Aan: René Romijn <Rene.Romijn@tabsholland.nl> CC: nav-users@uninett.no Onderwerp: Re: Extra info in alertmails On Tue, 15 Sep 2020 13:17:33 +0000 René Romijn <Rene.Romijn@tabsholland.nl> wrote:
Oeps.. you are right 😊
Question still stands though. Is it possible to add more information in the alertsmails.
Indeed you can. All the alert message templates for e-mail, SMS and so forth can be found in the directory structure below etc/alertmsg/. Here you will find a hierarchy of Django template files in directories subdivided by event types. It helps to be familiar with NAV's data model to make efficient use of customizations here. E.g. if you want to include room details in your boxDown e-mail notifications, you would edit the etc/alertmsg/boxState/boxDown-email.txt template and add `{{ netbox.room.id }}` wherever you want your room id to appear in the message text. -- sincerely, Morten Brekkevold Uninett
participants (2)
-
Morten Brekkevold -
René Romijn