Creating a page information tag | HCL Digital Experience
You use the page information tag to display page navigation details in the design of a page navigation element.
About this task
This is the format of a page information tag:
[PageInfo value=" " knowntext=" " unknowntext=" " start=" " end=" " ]
To create a page information tag:
Procedure
- Click Insert a Tag from a presentation template or element design field. The Tag Helper dialog opens.
- Select Page Information as the tag type.
-
Select a page information value:
- currentPage
- totalPages
- firstItemOnPage
- lastItemOnPage
- totalItems
- itemsPerPage
- unknownPages
The value "unknownPages" is used to display different text when the total number of pages are either known or unknown. When used you must also use the "knowntext" and "unknowntext" parameters.
- Click OK to add the tag to your navigator design.
What to do next
Tag parameters | Details |
---|---|
knowntext="
"
|
These parameters are used when value="unknownPages". For
example:[PageInfo value="unknownPages" knowntext="of" unknowntext="of at least" ] This
can be used with other PageInfo tags to render the following:
|
start=" "
|
The start and end attributes are used to wrap the data that is returned by a tag within other tags, such as HTML. These attributes are not mandatory. |