Use the <categoryFlat> tag to display various portal object categories, for example, Knowledge Base categories. It involves two element types: subcategories and category elements. A subcategory is the first item in the hierarchy, and category elements are the second.

Available attributes:

AttributeTypeMandatoryDescription
classStringNSpecify the CSS class name defined in the CSS field of the widget.
nodeIdStringNDefine the portal node ID.
categorySubjectStringY

Specify a column that contains category titles.

categoryDescriptionStringYSpecify a column that contains category descriptions. 
itemSubjectStringYSpecify a column that contains item titles.
itemDescriptionStringYSpecify a column that contains item descriptions.
categoryIconStringNSpecify a column that contains category icons.
itemIconStringNSpecify a column that contains item icons.
userStringNSpecify a column that contains the information about the item originator (for more details, see the example below). 
dateStringNSpecify a column containing the item creation date and time (for more details, see the example below).
previewStringNSpecify a column that contains information for the card preview.

Example:

categoryFlat
<div class="portal-kb-list">
<CategoryFlat nodeId="158934872713077631" categorySubject="name" categoryDescription="description"  itemDescription="body" itemSubject="name"  date="published_at" user="sys_updated_by" ></CategoryFlat>
</div>

The template above adds the following element to the page:


  • No labels