Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Use the <categoryFlat> portal tag to display various portal object categories. For example, Knowledge Base categories. It involves two elements element types: subcategories and category elements; subcategory is the first item in the hierarchy, and category elements are the second.
Available attributes:
Attribute | Type | Mandatory | Description |
---|---|---|---|
class | String | N | Specify the CSS class name defined in the CSS field. |
nodeId | Big Integer | N | Define the portal node name. |
categorySubject | String | Y | Specify a table field containing category titles. |
categoryDescription | String | Y | Specify a table field containing category descriptions. |
itemSubject | String | Y | Specify a table field containing item titles. |
itemDescription | String | Y | Specify a table field containing item descriptions. |
categoryIcon | String | N | Specify a table column containing category icons. |
itemIcon | String | N | Specify a table column containing item icons. |
user | String | N | Specify a column from which containing the information about the item originator that should be taken (for better claritymore details, see the example below). |
date | String | N | Specify a column from which containing the item creation date and time that should be taken (for better claritymore details, see the example below). |
preview | String | N | Specify a column containing information that can be used for the card preview. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<CategoryFlat nodeId="158934872713077631" categorySubject="name" categoryDescription="description" itemDescription="body" itemSubject="name" date="sys_created_at" user="sys_created_by"></CategoryFlat> |