General Actions:
| Generates links that can be used in a paged view. |
| Type | Doc (Macro Velocity) |
| Developed by | |
| License | GNU Lesser General Public License 2.1 |
Table of contents
Generates links that can be used in a paged view, i.e. search results, list of objects, list of documents, etc. It uses two request parameters, "ipp" (items per page) and "page" (the current page to display).
All the parameters should be numbers.
If there is only one page, then the links are not printed.
It's up to you to implement the logic to display the current page. See the example below.
| Name | Optional | Allowed values | Default value | Description |
|---|---|---|---|---|
| itemsPerPage | no | any integer | - | The number of displayed items per page. |
| totalPages | no | any integer | - | The total number of pages, starting from 0 (so 0 = 1 page, 1 = 2 pages). |
| crtPageNumber | no | any integer | - | The currently displayed page, starting from 0 (so 0 = first page, 1 = second page). |
