Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Merged branch "DOC0000070" into parent
Use the <category> tag to display portal categories and items structure. It can interact with other widgets, for example, the <breadcrumbs> or <sidemenu> widgets.
Available attributes:
Attribute | Type | Mandatory | Description |
---|---|---|---|
class | String | N | Specify the CSS class name defined in the CSS field of the widget. |
nodeId | String | N | Define the portal node ID. |
categorySubject | String | Y | Specify a table field column that contains category titles. |
categoryDescription | String | Y | Specify a table field that column that contains category descriptions. |
itemSubject | String | Y | Specify a table field that column that contains item titles. |
itemDescription | String | Y | Specify a table field that column that contains item descriptions. |
categoryIcon | String | N | Specify a table column that contains category icons. |
itemIcon | String | N | Specify a table column that contains item icons. |
Example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<Category nodeIdcategorySubject="158766114011088368name" categorySubjectcategoryDescription="namedescription" categoryDescriptioncategoryIcon="short_descriptionimage" itemDescription="vendordescription" itemSubject="cityname" itemIcon="iconsimage"></Category> |
The template above displays categories on the page:
Image Added