You can change many aspects of notifications in Connections 6.0 CR4 and later by making
changes to a common properties file.
Before you begin
Make sure that you first enable the updated
templates.The following
procedures are provided as a way for you to easily override several properties that affect the CR4
notifications: company name, sender name and email, placement of the Connections application name,
date format, maximum number of events, company logo, profile photo type, background colors in the
notification, and footers.
These procedures do NOT apply to notifications from the default
(earlier than CR4) templates, for which you can make changes only by using the methods referenced in
the preceding note.
- Locate the properties file commonProperties.json in the following
directory:
app_server_root/profiles/dm_profile_root/config/cells/cell_name/LotusConnections-config/notifications_v2/resources/
- Open the commonProperties.json file with a text editor.
Procedure
Customizing common propertiesFind the properties in the
commonProperties.json file that you want to change, and replace the values with
the ones you want. All properties in the style section are optional.
The following example
shows a sample commonProperties.json with default values for the style
section.
{
"name": "Notification mail customization",
"type": "com.ibm.connections.notification.mail",
"payload": {
"platformName": "HCL Connections",
"photoType":"url",
"orgIcon":"data:image/png;base64,...",
"style": {
"bodyBackgroundColor": "#eeeeee",
"mastLogoBackgroundColor": "transparent",
"mastLogoHeight": "32",
"sidebarBackgroundColor": "#3d6cf0",
"messageBackgroundColor": "#ffffff"
},
"activityDateFormat": "dd MMM",
"activityMax" : "25",
"subjectAppNameAppend" : "tail"
},
"path": "notify"
}
Note: The
orgIcon
data is truncated in the examples for brevity.
Important: When you are finished editing all of the properties that you want to change, save your changes and
restart the News application for the changes to take effect.
-
To customize the company name used in notifications email subject and
body:
-
To customize the sender name and email used in notifications and email
digests:
-
If you want notifications to always come from one source, usually the Connections
administrator, you can add an alwaysUseGlobalSender property to the
notification-config.xml file and set it to true. For more information, see Defining valid administrator email addresses.
-
To change the name and email of the sender to something meaningful for your organization, for
example <Renovations-Newsflash@example.com>, find the payload
section in commonProperties.json, and add the lines for the
orgSenderEmail and orgSenderName properties, changing the
values to what you want users to see, as in the following example:
"payload": {
"orgSenderEmail": "Newsflash@example.com",
"orgSenderName": "Renovations"
}
-
To customize the placement of the Connections application name in the
subject line:
This name shows which application the notification is coming from.
-
Find the value for the subjectAppNameAppend: property and set it to the
placement you want.
"payload": {
"subjectAppNameAppend" : "tail"
}
Valid values are as follows:
tail
is the default value, displaying the application name at the end of the
subject line.
head
displays the application name at the beginning of the subject line.
none
causes no application name to be displayed.
-
To customize the date format used in notifications:
- Find the activityDateFormat: value and replace it with your own
format.
For the date, you can use any of the formats specified by the
International Components for Unicode (ICU) specification. For example, in the United States
locale, you could use "
MM/d/yy" to display a date like 01/24/19, or
"
EEE, MMM d, yyyy" to display one like Thu, Jan 24,
2019.
"payload": {
"activityDateFormat": "dd MMM"
}
-
To customize the maximum number of events displayed in the daily or
weekly newsletter:
-
To customize the company logo:
Note: Supported image file formats:
- jpg/jpeg
- png (under 40Kb in size due to email client restrictions)
-
To customize profile photo types:
-
To customize the background colors in the notification:
- Notification body
To change the overall background color of the notification, find the
bodyBackgroundColor
style property and set it to the desired color as an RGB hex
triplet.
"payload": {
"style": {
"bodyBackgroundColor": "#eeeeee"
}
}
- Notification message content
To change the background color of the notification message
content section, find the
messageBackgroundColor
style property and set it to the
desired color as an RGB hex
triplet.
"payload": {
"style": {
"messageBackgroundColor": "#ffffff"
}
}
-
To add or customize the footer in notifications: