The Notifications Centre shows contextual notifications to the portal user. Notifications are records of the new Portal Notification object (b3p__Portal_Notification__c), a master detail child of Contact.
| Field | Purpose |
|---|---|
Name |
Title |
Contact__c |
Recipient (master detail) |
Body__c |
Message |
Type__c |
Info, Success, Warning, Error (drives icon and colour) |
Category__c |
Free text, usable to filter a centre to some categories |
Icon__c |
Optional icon class override |
Target_URL__c |
Where a click goes: #Page Name, #Page?recordId=... or a URL |
Priority__c |
Low, Normal, High |
Viewed__c, Viewed_On__c |
Set by the component |
Dismissed__c |
Set when the user dismisses |
Expires_On__c |
Hidden after this date time |
Related_Record_Id__c |
Optional link to any record |
b3p.PortalNotificationService.publish(List<b3p__Portal_Notification__c>).| Setting | Key | Notes |
|---|---|---|
| Display | displayMode |
bell (icon with unread badge and dropdown) or list (inline feed) |
| Mark as viewed | markViewedOn |
open (panel opened), visible (scrolled into view), click |
| Show viewed | showViewed |
|
| Dismiss, mark all | allowDismiss, allowMarkAll |
|
| Refresh | pollSeconds |
Default 60, 0 disables |
| Categories | categories |
Comma separated list to restrict the centre |
| Maximum | pageSize |
Place a bell centre in a header sub template so it is on every page. Notifications always belong to the logged in contact; visitors see a log in prompt. Events: portalnotificationviewed, portalnotificationclick.