Site Alerts Widget - Akumina Community

Site Alerts Widget

Estimated reading time: 1 min

Main Features

  • Optional header bar supporting web part title and icon
  • Full rich text support, editable using AppManager’s WYSIWYG editor.
  • Alert style option which changes control display and icon to call additional attention to the content
  • Expiration date to automatically remove content block from site, if desired
  • Items displayed are security trimmed based on specific site user’s SharePoint permissions
  • Mobile-ready via Responsive Web Design

Uses Content Type: (click to view content type definition)


Widget Properties Example Instance


Property Details
isroot If false, the list which contains the data for this instance is on the current site.

If true, the list which contains the data is on the root of the Site Collection.

selectfields The data fields (columns) from the SharePoint list that the widget should retrieve for use in this instance.

Since this uses a defined ContentType, the selectfields = ID,Title,SiteWideAlertMessage,EnableAlert

listname Name of the SharePoint list that contains the data to be displayed for this instance.
viewxml The viewxml contains any special manipulation of the data that needs to be done by the widget BEFORE it gets render by the specified view.  In this case, the viewxml is set to the following string:


<View><Query><OrderBy><FieldRef Name=’ID’ Ascending=’FALSE’></FieldRef></OrderBy><Where><And><Eq><FieldRef Name=’EnableAlert’ /><Value Type=’Boolean’>1</Value></Eq><Or><Geq><FieldRef Name=’Expires’ /><Value IncludeTimeValue=’TRUE’ Type=’DateTime’><Today /></Value></Geq><IsNull><FieldRef Name=’Expires’ /></IsNull></Or></And></Where></Query><RowLimit>1</RowLimit></View>

cacheinterval Sets the time (in secs) that the data should be saved in the local browser cache of the current user.

0 = do not cache the data for this widget

-1 = use the default caching strategy set in the Digital Workplace configuration

[whole number] = cache for specified time (secs)

VIEW View Name = Alert

View Template URL =



Was this article helpful?
Dislike 0
Views: 148