Collated Department News Widget - Akumina Community

Collated Department News Widget

Collated Department News Widget

Purpose

Display a number of news items from specified department sites

Features

    • Displays content that exists in one or more subsites
    • Aggregates news from multiple departments
    • Simple configuration
    • Each subsite should contain a list with the same name

Details

    • Widget Name: CollatedDepartmentNewsWidget
    • Available With:  Release 4.1 and Above
    • Content App Type: N/A
    • Content Type: N/A
    • Content App Name: N/A
    • List Name: N/A
    • Recommended Images Sizes: N/A
    • Dependencies:  SharePoint

Content

N/A

Properties

 

List is on Root Site When checked, the widget references the list on parent/root site collection.
Selected List columns Columns in the SharePoint list that the widget is utilizing
Enable Paging If false, the widget will not display paging controls 

If true, the widget will display paging controls (if implemented by developer in widget) 

Items/Page Sets the number of items to display on each page IF paging is enabled. 
List Name Name of the SharePoint list that contains the data to be displayed for this widget instance. 
Function to call after fetching data OOTB -Blank (used for widget expansion):  Name of the function called after data has been fetched by the widget.
isasynccallback True if the callbackmethod should be run asynchronously
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=’Start_x0020_Date’ Ascending=’FALSE’></FieldRef></OrderBy><Where><And><Leq><FieldRef Name=’Start_x0020_Date’></FieldRef><Value IncludeTimeValue=’TRUE’ Type=’DateTime’><Today ></Today></Value></Leq><Or><Geq><FieldRef Name=’Expires’ ></FieldRef><Value IncludeTimeValue=’TRUE’ Type=’DateTime’><Today ></Today></Value></Geq><IsNull><FieldRef Name=’Expires’ ></FieldRef></IsNull></Or></And></Where></Query><RowLimit>4</RowLimit></View>

callbacktype N/A for this widget: Name of the function called before the view has been rendered to the screen to edit properties of the view 
Siteslist List of subsites to be used
Cache Interval Sets the time, in minutes, 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 via Site Creator

Whole Number = Cache for specific time, in minutes

Order By Field that the items are ordered by
Order Direction Order (ascending, descending) that the widget displays
Function to call before binding the UI events Name of the function called after the UI has been rendered to the screen
dependencies Other widgets that this widget depends on

Views

View Name:  HomePage-DeptNews

View Description:  Displays one main featured news item with  a number secondary news items below it.

View Preview:

 

Views: 772
//]]>