Skip to content

View Helpers

paginationInfo()

paginationInfo() — returns string

Available in: controller Category: Pagination Functions

Displays a text summary of the current pagination state, e.g. “Showing 26-50 of 1,000 records”. Uses token replacement in the format string:

NameTypeRequiredDefaultDescription
handlestringnoqueryThe handle given to the query that the pagination info should be displayed for.
formatstringnoShowing [startRow]-[endRow] of [totalRecords] recordsFormat string with tokens: [startRow], [endRow], [totalRecords], [currentPage], [totalPages].
encodeanynotrueUse this argument to decide whether the output of the function should be encoded in order to prevent Cross Site Scripting (XSS) attacks. Set it to true to encode all relevant output for the specific HTML element in question (e.g. tag content, attribute values, and URLs). For HTML elements that have both tag content and attribute values you can set this argument to attributes to only encode attribute values and not tag content.