Generally, a list of records contains elements as listed below:
The page is located on the dedicated portal node.
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):
<div class="portal__breadcrumbs"> <breadcrumbs> </div> |
To configure a list widget implemented by a listitems tag, use its attributes. Attribute values can be passed in several ways:
it is preferable to follow the recommendations when filling in the attribute values. You can use the example below as a pattern:
<listitems class="linkStyles" tableName="itsm_request" condition="(stateNOT IN10@7)" listView="SP" itemPage="record" itemView="SP View Only" choiceConditionName="state" dateConditionName="sys_updated_at" perPage="10" displayColumnNumber="2"></listitems> |
Let's take a closer look at this example.
tableName="itsm_request" condition="(stateNOT IN10@7)"
These attributes allow rendering request lists with statuses other than Closed or Completed.
listView="SP"
In this example, the "SP" list view is used instead of the default.
itemPage="record"
The record page is used for opening and displaying the list items. In this case, it is a pathname of the portal page displayed after the record is opened.
For more information, check the listitems tag attributes description in the relevant article.
itemView="SP View Only"
The SP View Only record view is used instead of the default to display the request record form
choiceConditionName="state"
dateConditionName="sys_updated_at"
Requests are filtered by state and creation date.
perPage="10"
One list page displays ten records
displayColumnNumber="2"
The column containing clickable titles used to navigate into a record is a second one in the list.