Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Merged branch "DOC0000070" into parent

Use the <categoryFlat> portal tag  tag to display various portal object categories. For , for example, Knowledge Base categories. It involves two elements 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.
nodeId
Big Integer
StringNDefine the portal node
name
ID.
categorySubjectStringY

Specify a

table field containing

column that contains category titles.

categoryDescriptionStringYSpecify a
table field containing
column that contains category descriptions. 
itemSubjectStringYSpecify a
table field containing
column that contains item titles.
itemDescriptionStringYSpecify a
table field containing
column that contains item descriptions.
categoryIconStringNSpecify a
table column containing
column that contains category icons.
itemIconStringNSpecify a
table column containing
column that contains item icons.
userStringNSpecify a column
from which
that contains the information about the item originator
should be taken
(for
better clarity
more details, see the example below). 
dateStringNSpecify a column
from which
containing the item creation date and time
should be taken
(for
better clarity
more details, see the example below).
previewStringNSpecify a column
containing information that can be used
that contains information for the card preview.

Example:

Code Block
languagexml
titlecategoryFlat
linenumberstrue
<div class="portal-kb-list">
<CategoryFlat nodeId="158934872713077631" categorySubject="name" categoryDescription="description"  itemDescription="body" itemSubject="name"  date="syspublished_created_at" user="sys_createdupdated_by" ></CategoryFlat>
</div>

The template above adds the following element to the page:

Image Added