You use the
page information tag to display page navigation
details in the design of a page navigation element.
This is the format of a page information
tag:
[PageInfo value=" " knowntext=" " unknowntext=" " start=" " end=" " ]
To
create a page information tag:
- Click Insert
a Tag from the page
navigation 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
design.
Once you have added the tag to
your design, you can also
add the following parameters to the tag:
Table 1. Additional tag
parameters| Tag parameters |
Details |
| knowntext="
" unknowntext="
"
|
These parameters are used when
value="unknownPages".
For example:[PageInfo value="unknownPages"
knowntext="of" unknowntext="of at least" ]
This could be used
with other PageInfo tags to render the following: - When the
total number of pages are known: "Page 2 of 5."
- When the total
number of pages are unknown: "Page 2 of at least
5."
|
| start="
" end=" "
|
The start and end attributes
are used to wrap
the data returned by a tag within other tags, such as HTML. These
attributes are not mandatory. |