How To Modify Notification Center Email Template

Follow

Applies To:

Zend Server
Notification Center

Summary

Sometimes, you would like to edit the Notification Center email template on specific servers to reflect some design requirement or add information from the server (using PHP inline code).

Solution

Backup and edit this notification template file:

Linux / Mac: /usr/local/zend/gui/data/email-templates/notification.phtml

Windows: C:\Program Files (x86)\Zend\ZendServer\gui\data\email-templates\notification.phtml

IBM i: /usr/local/zendsvr6/gui/data/email-templates/notification.phtml

List of PHP variables used in the template:

$title
$description
$url (if available - for troubleshooting)
$baseUrl (Zend Server UI back link)
$notifications (array) - enumerate through this to run following info methods:
  $notification->getTitle() - Generic notification title
  $notification->getUrl() - add to $baseUrl to build UI page back link

Hints

Hint 1: If you automate this change on all your Zend Server installation, you can grab the machine <hostname> using PHP:

<?php echo $_SERVER["HTTP_HOST"]; ?>

Hint 2: The back links to Zend Server can be modified by visiting the Admin UI under Administration -> Settings, and changing the Default Server (for the main host used in application / deployment) and External URL (return URL used in email notifications).

 

Have more questions? Submit a request

Comments

Powered by Zendesk