Articles from Category Widget

Overview

This widget facilitates display of a list of articles tagged with a specific category.
It is a useful way to highlight content related to a specific product or feature, or to display news or alerts. 

Note: This widget will only be displayed if it has been "enabled" and if there are one or more 
articles that meet the configuration criteria.

Configuring the Widget

  1. Login to Portal Administration.
  2. Click Edit in a portal's row in the Available Portals list.
  3. Click Configuration.
  4. Scroll to the line: <home> <articlesFromCategory
  5. Make changes to the Widget as described in the table.
  6. Click Save.

XML Section

Description

Example

<home> <articlesFromCategory>

The Articles from Category widget can be implemented in multiple instances. 

Enable the widget by setting "enabled=true".
Disable the widget by setting "enabled=false" 

Specify the following:  

  • A unique ID for each widget instance.  
  • A "categoryID" to be used for the widget. This is mandatory. This ID can be that of a category or sub-category.  
  • A number between 1-50 to indicate the number of articles to be listed. This is mandatory.    
  • "All" to display articles regardless of their modified date.     
  • A number between 1-90, to indicate a time-frame of modified articles, in number of days. This is mandatory. Articles are displayed by Modified Date, newest to oldest. 

If more articles exist than are configured to display in the widget, a "more" link is displayed.  
Clicking on the "more" link displays the browse page (if enabled), or the search results page, filtered to show articles in the selected category. 

<articlesFromCategory enabled="true" id="1"><categoryID>1053</categoryID>
<numberOfArticles>20</numberOfArticles>

<numberOfDays>90</numberOfDays>

</articlesFromCategory>

Example: <numberOfDays>7</numberOfDays>

Displays articles in the selected category that were modified within the last 7 days.

 

Table : Configuring Widget : Articles from Category

You can determine the category ID by moving your mouse over a category in the KB Admin control panel and observing the URL.  See illustration.

Figure : Mouse-over for Category ID