Company News Hero Widget - Akumina Community

Company News Hero Widget

Company News Hero Widget

Purpose

To display a single featured News Item with a link to the item’s detail page.

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

Details

    • Widget Name: CompanyNewsHeroWidget
    • Available With: Release 4.1 and Above
    • Content App Type: AkuminaNews
    • Content Type: Author
    • Content App Name: Company News
    • List Name: CompanyNews_AK
    • Recommended Images Sizes: 760 x 500 px
    • Dependencies:  SharePoint

Content

Title  Title that will display in the Content App list 
Body  Rich text that will makeup the body of the News article 
Expires  Date and time when the news article will become inactive and no longer display 
Start Date  Date that the article will 
AnnouncementTitle  Title that will be displayed for the news Item 
Summary  Summary of the news item 
Image  Image that will be used for the new item 
Featured  Checkbox to set it item is featured or not 
NewsCategory  Managed Metadata for tagging  
Friendly URL Friendly URL of the detail page

 

Properties

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”
tagcallbackmethod Value for this should be GetTagAsValue
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 N/A
orderdirection N/A
uicallbackmethod N/A
dependencies This field designates if this instance depends on any other widget definition. In this case, it depends upon the “GenericListWidget”

 

Views

View Name:  HeroPage-Hero

View Description:  Displays a single Company News Item with a hyperlinked photo. 

 View Preview:

Views: 370
//]]>