Department News Item Widget
Purpose
Displays the content from the selected news article in DeptNews_AK list. To learn more about editing and adding articles, please visit here.
Features
-
- Displays a single news item from the specified list
Details
-
- Widget Name: DepartmentNewsItemWidget
- Availavle With: Release 4.1 and Above
- Content App Type: Author
- Content Type: AkuminaNews
- Content App Name: N/A
- List Name: DeptNews_AK
- Recommended Images Sizes: 900 x 500 px
- Dependencies: SharePoint
Content
N/A
Properties
Selected List Columns | Columns in the SharePoint list that the widget is utilizing | |
List Name | Name of the SharePoint list that contains the data to be displayed for this widget instance | |
Use Friendly Url | Determines if the widget pulls in the friendly Url. Keep this checked | |
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. | |
View XML | 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> |
|
Cache Interval | Sets the time, in minutes, that the data should be saved in the local browser cache of the current user.
Whole Number = Cache for specific time, in minutes |
|
Order By | Field that the items are ordered by | |
Order Direction | Order (ascending, descending) that the items display | |
Function to call before binding the UI events | OOTB -Blank (used for widget expansion): Name of the function called after the UI has been rendered to the screen | |
Site Collection URL |
|
|
dependencies | Widget that this widget depends on, in this case the GenericItemWidget |
Views
View Name: News Detail – Main Content
View Description: Displays the news article complete with title, date published, article body and image