Department News Item Widget - Akumina Community

Department News Item Widget

Estimated reading time: 1 min


Main Features

  • Displays a single news item from the specified list

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


Widget Properties Example Instance


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

For this example, the selectfields = ID,AnnouncementTitle,Image,Start_x0020_Date,Body,Expires

listname Name of the SharePoint list that contains the data to be displayed for this instance.
callbackmethod The callbackmethod is set by the developer of the widget.
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><Where><And><Eq><FieldRef Name=’Title’/><Value Type=’Text’>{{properties.idOrTitle}}</Value></Eq><And><Leq><FieldRef Name=’Start_x0020_Date’ /><Value IncludeTimeValue=’TRUE’ Type=’DateTime’>{{time.todayutc}}</Value></Leq><Or><Geq><FieldRef Name=’Expires’ /><Value IncludeTimeValue=’TRUE’ Type=’DateTime’><Today /></Value></Geq><IsNull><FieldRef Name=’Expires’ /></IsNull></Or></And></And></Where></Query></View>

cache interval 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)

dependencies GenericItemWidget
VIEW View Name = NewsDetail-MainContent

View Template URL =


Was this article helpful?
Dislike 0
Views: 135