From 676b0247e7031dd7947225b1018e5c489386edc4 Mon Sep 17 00:00:00 2001 From: obozdag Date: Tue, 7 May 2024 15:32:51 +0200 Subject: [PATCH] docs: Small typos in libraries/pagination.rst Small typos in libraries/pagination.rst --- user_guide_src/source/libraries/pagination.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/user_guide_src/source/libraries/pagination.rst b/user_guide_src/source/libraries/pagination.rst index 3871ec72a2e1..ed5567372324 100644 --- a/user_guide_src/source/libraries/pagination.rst +++ b/user_guide_src/source/libraries/pagination.rst @@ -149,7 +149,7 @@ the previous section. Specify the segment number to use as the fifth parameter t Please note: ``$segment`` value cannot be greater than the number of URI segments plus 1. -If you in need to show many pagers on one page then additional parameter which will define a group could be helpful: +If you need to show many pagers on one page then the additional parameter which will define a group could be helpful: .. literalinclude:: pagination/007.php @@ -224,7 +224,7 @@ usefulness. It is easiest to demonstrate creating a new view by showing you the setSurroundCount() ------------------ -In the first line, the ``setSurroundCount()`` method specifies than we want to show two links to either side of +In the first line, the ``setSurroundCount()`` method specifies that we want to show two links to either side of the current page link. The only parameter that it accepts is the number of links to show. .. note:: You must call this method first to generate correct pagination links. @@ -274,7 +274,7 @@ In the code presented for the standard pagination structure, the methods `getPre If you want to use the pagination structure where prev and next will be links to the previous and next pages based on the current page, just replace the `getPrevious() & getNext()`_ methods with `getPreviousPage() & getNextPage()`_, and the methods `hasPrevious() & hasNext()`_ by `hasPreviousPage() & hasNextPage()`_ respectively. -See following an example with these changes: +See the following example with these changes: .. literalinclude:: pagination/014.php @@ -325,7 +325,7 @@ links to be displayed. For example, if the set of links to be displayed is somet 3 | 4 | 5 | 6 | 7 -``getFirstPageNumber()`` will return 3 while ``getLastPageNumber()`` will return 7. +``getFirstPageNumber()`` will return 3 while ``getLastPageNumber()`` will return 7. .. note:: To obtain the page numbers of the first and last pages in the entire result set, you can use the following approach: The first page number is always 1, and `getPageCount()`_ can be used to