knowledge:categoryList

A loop on a subset of the category hierarchy. The total number of categories displayed in a page can’t exceed 500.

You must have access to the category you set as rootCategory to get a list of any categories. To list categories available to a user, see the Knowledge Support REST APIs.

Example 

List descendents of the ‘phone’ category. ‘phone’ is in the ‘product’ category group.

1<select name="category">
2    <knowledge:categoryList categoryVar="category" categoryGroup="product" rootCategory="phone" level="-1">
3        <option value="{!category.name}">{!category.label}</option>
4    </knowledge:categoryList>
5</select>

Attributes 

Attribute NameAttribute TypeDescriptionRequired?API VersionAccess
ancestorsOfStringIf specified, the component will enumerate the category hierarchy up to the root (top-level) category. rootCategory can be used to specify the top-level category. 43.0
categoryGroupStringThe category group to which the individual categories belong.Yes43.0
categoryVarStringThe name of the variable that can be used to represent the article type object in the body of the categoryList component.Yes43.0
idStringAn identifier that allows the component to be referenced by other components in the page. 14.0global
levelIntegerIf specified with rootCategory, the component will stop at this specified depth in the category hierarchy. -1 means unlimited. 43.0
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 14.0global
rootCategoryStringIf specified without ancestorsOf, the component will loop on the descendents of this category. 43.0