...>Page Examples
Generally, a knowledge base page consists of the following elements:
- The <form> widget that allows displaying a record form from the Knowledge BaseThe breadcrumbs widget allowing navigation within the portal pages structure.
- The <sidemenu>sidemenu widget that allows adding a side-menu.adding a sidemenu.
- The categoryFlat widget displaying object categoriesThe <breadcrumbs> widget that allows navigating within the Portal pages structure.
These widgets interact with each other.
Image Added
The page located on references the dedicated portal node with with the following attributes:
Field | Value |
---|
Enable Dynamic Nodes |
is TRUE | True |
Category Parent Column |
has a reference to the Category table Category (parent_knowledge_base_category) |
.Knowledgebase Form Breadcrumbs widget configuration
Knowledgebase widget is basically a form widget surrounded by <div> elements.
To configure a form widget for the Knowledge Base, it is preferable to follow the recommendations when filling in the attribute values. You can use the example below as a patternTo configure breadcrumbs correctly, it is preferable to use the attribute values as in the example below (type these values in the Template field of the breadcrumbs widget form):
Code Block |
---|
language | xml |
---|
theme | Eclipse |
---|
title | Knowledgebase formbreadcrumbs |
---|
linenumbers | true |
---|
|
<div class="portal__kb_itembreadcrumbs customized">
<Form tableName="article" sysid={data.item} view="SP" uiActions="false" userScripts="true"/>
<div> |
After that, you can define the breadcrumbs view in the CSS field of this form:
Code Block |
---|
language | css |
---|
theme | Eclipse |
---|
title | Breadcrumbs CSS |
---|
linenumbers | true |
---|
|
.customized {
font-family: Tahoma,Verdana,Segoe,sans-serif;
} |
To configure a sidemenu widget, To configure a side-menu widget, it is preferable to follow the recommendations when filling in the attribute values. You can use the example below as a pattern:
Code Block |
---|
language | xml |
---|
theme | Eclipse |
---|
title | Sidemenusidemenu |
---|
linenumbers | true |
---|
|
<SideMenu
parentsDepth="1"
childrenDepth="1"
includeCategories="1"
includeItems="1">\
</SideMenu> |
Breadcrumbs CategoryFlat widget configuration
To configure breadcrumbs correctly, it is preferable to use the attribute values as in the example below (type these values in the Template field of the <breadcrumbs> widget form)a categoryFlat widget, use the example below as a pattern:
Code Block |
---|
language | xml |
---|
theme | Eclipse |
---|
title | breadcrubmbscategoryFlat |
---|
linenumbers | true |
---|
|
<div<CategoryFlat classnodeId="158934872713077631"portal__breadcrumbs customized">
<breadcrumbs>
</div> |
After that, you can define the breadcrumbs view in the CSS field of this form:
Code Block |
---|
language | css |
---|
theme | Eclipse |
---|
title | Breadcrumbs CSS |
---|
linenumbers | true |
---|
|
.customized {
background: #FFFFFF;
padding: 9px 0px 8px 16px;
} categorySubject="name" categoryDescription="description" itemDescription="body" itemSubject="name" date="sys_created_at" user="sys_created_by"></CategoryFlat> |