Documentation
RocketFuel
<  Widgets

KB Category Articles

### Description

Gain more control over how each article is displayed. The KB Category Articles widget allows users to view Knowledge Base articles within the portal. You can customize and style this widget using the available instance options and associated custom templates without cloning.
- Uses `KBPortalServiceImpl` service for querying knowledge categories.

### Instance Options
| Option  | Property | Comments | Default Value | Source |
| ----- |:-----:| ---- | ---- | ---- |
| Template | `u_template` | Takes an id from a ngTemplate associated with the widget. These templates can be used to customize the layout of the widget. | `Default value` | Instance |
| Bootstrap Class Name | `class_name` | Allows you to add CSS classes to the class attribute of the widget's parent div. | `Default value` | Instance |
| Results per page | `results_per_page` | Specifies page results when a user clicks on of the the records generated in the list. | `10` | Options Schema |
| Page | `u_page` | Specifies which page to take the user to when they click on of the the records generated in the list. | `Default value` | Options Schema |
| Show Author | `show_author` | Allows you to display the author of an article. | `true` | Options Schema |
| Show View Count | `show_view_count` | This property allows a custom template to be selected. | `true` | Options Schema |
| Show Asked By | `show_asked_by` | Displays the author of a question. | `true` | Options Schema |
| Show Last Updated On | `show_last_updated_on` | Displays how long since the article was updated. | `true` | Options Schema |
| Show Rating | `show_rating` | Displays the star rating of article.| `true` | Options Schema |
| Show Vote Count | `show_vote_count` | Displays the vote count of an article. | `true` | Options Schema |
| Show Answer Count | `show_answer_count` | Displays the answer count of article. | `true` | Options Schema |
| Display as Panel | `display_as_panel` | Displays a panel for the articles. | `false` | Options Schema |
| Order By | `show_answer_count` | This property allows a custom order to be selected. | `sys_created_on` | Options Schema |

### CSS/SASS Variables

_CSS/SASS variables are given default values that can be overridden with theming or portal-level CSS._

| Variable | Comments |
| -------- |:---|
| `$nr-kb-cagegory-article-star-color` | This variable is used to set article color. |

### Templates

| Name | Comments |
| -------- |:---|
| `kb-article.html` | Standard card template using kb-card-template directive. |

Want to Learn More? Talk to an Expert
Contact Us