Company News Hero Widget - Akumina Community

Company News Hero Widget

Estimated reading time: 1 min

 

Main Features

  • Displays a single news item from a list as a hyperlinked image with a display title overlay
  • Selection of the new item to display is determined by tags in the widget instance
  • Can be set to display the latest content with a specific tag
  • Can be targeted based on the current user’s department, city or AD group
  • Item is hyperlinked using the FriendlyURL to the dynamic display page for the content

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

AkuminaNews

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.

For this example, the selectfields = AnnouncementTitle,Image,Category,FriendlyUrl

ispaging If false, the widget will not display paging controls

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

pagesize Sets the number of items to display on each page IF paging is enabled.
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.  For this use, the method to specify is “ShowHeroItem”
isasynccallback Value for this type of instance = false
viewxml N/A for this type of instance
callbacktype Value for this type of instance = customdataload
column Specifies the list metadata column name that should be used for matching the “tag” value to determine which content displays
tag tag – this value is used when you want to display content based on a specific metadata tag that has been applied in the “column” specified.  In the example above, the widget is looking for content that has been tagged with the term CORPORATE.
featured If checked, only items marked as “featured” will be shown
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)

orderby
orderdirection
uicallbackmethod
dependencies This field designates if this instance depends on any other widget definition. In this case, it depends upon the “GenericListWidget”
VIEW View Name = HomePage-Hero

View Template URL =

/Style%20Library/DigitalWorkPlace/Content/Templates/CompanyNewsHeroWidget/TargetedNewsItem.html

 

Was this article helpful?
Dislike 0
Views: 98
//]]>