SC Categories widget
The SC Categories widget displays Service Catalog categories. You can use this base system widget as-is in your portal or clone it to suit your own business needs.
The system renders the categories available in this widget from the Categories table in Service Catalog [sc_category].
If you associate your portal with multiple catalogs, then the SC Categories widget also includes a menu to select which catalog to browse.
For more information on associating your portal with catalogs, see Configure a catalog in Service Portal.
Instance options
| Field | Description |
|---|---|
| Data | |
| Page | Defines what page opens when a user clicks a category. By default, this option redirects to the page for the selected category. |
| Number of categories to load | Specifies the number of categories displayed in the Categories pane. By default, ten categories are displayed. If there are additional categories, the Show All option is available. |
| Presentation | |
| Bootstrap color | Color scheme for the widget. The default colors are defined by the portal theme, but if you want the instance to have a specific color, select the option from the list. |
| Category Layout | Select a flat or nested layout. A flat layout shows all of the available categories.
A nested layout shows only the parent categories. Use a nested layout if you have a large
number of categories to prevent an unnecessarily long list. Click The widget only supports three levels of nesting. After level four, categories appear in the flat view. |
| Behavior | |
| Hide at XS | Hides the categories option on small screens, for example, on smart phones. The default is set to false. |
| Omit badges | Show or hide the number of items included in each category. |
| Check canView per item | Verifies with each item that the user has the right roles to view the catalog item. |
注:
If a category contains more than 200 items, update the following instance options on this
widget for better performance:
- Category Layout: Flat
- Omit badges: True
- Check canView per item: False