mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update 02_Pagination.md
Adding commonly used $FirstItem and $LastItem to the Template Variables list.
This commit is contained in:
parent
13725d2f92
commit
bd2f017557
@ -110,6 +110,8 @@ list.
|
|||||||
| `$NextLink`, `$PrevLink` | They will return blank if there's no appropriate page to go to, so `$PrevLink` will return blank when you're on the first page. |
|
| `$NextLink`, `$PrevLink` | They will return blank if there's no appropriate page to go to, so `$PrevLink` will return blank when you're on the first page. |
|
||||||
| `$CurrentPage` | Current page iterated on. |
|
| `$CurrentPage` | Current page iterated on. |
|
||||||
| `$TotalPages` | The actual (limited) list of records, use in an inner loop |
|
| `$TotalPages` | The actual (limited) list of records, use in an inner loop |
|
||||||
|
| `$FirstItem` | Returns the number of the first item being displayed on the current page. This is useful for things like “displaying 10-20”. |
|
||||||
|
| `$LastItem` | Returns the number of the last item being displayed on this page. |
|
||||||
| `$TotalItems` | This returns the total number of items across all pages. |
|
| `$TotalItems` | This returns the total number of items across all pages. |
|
||||||
| `$Pages` | Total number of pages. |
|
| `$Pages` | Total number of pages. |
|
||||||
| `$PageNum` | Page number, starting at 1 (within `$Pages`) |
|
| `$PageNum` | Page number, starting at 1 (within `$Pages`) |
|
||||||
|
Loading…
Reference in New Issue
Block a user