Skip to content

Commit efd20dd

Browse files
authored
Update pagination.rst
docs.
1 parent 9c68b6f commit efd20dd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

user_guide_src/source/libraries/pagination.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ It is also possible to use a URI segment for the page number, instead of the pag
112112

113113
Please note: ``$segment`` value cannot be greater than the number of URI segments plus 1.
114114

115+
If you in need to show many pagers on one page then additional parameter which wil define a group could be helpful::
116+
<?php
117+
$pager = service('pager');
118+
$pager->setPath('path/for/my-group', 'my-group'); // Additionaly you could define path for every group.
119+
$pager->makeLinks($page, $perPage, $total, 'template_name', $segment, 'my-group');
120+
?>
121+
115122
Paginating with Only Expected Queries
116123
=====================================
117124

0 commit comments

Comments
 (0)