Skip to content

Commit

Permalink
Merge pull request #8863 from obozdag/patch-4
Browse files Browse the repository at this point in the history
docs: Small typos in libraries/pagination.rst
  • Loading branch information
paulbalandan authored Nov 30, 2024
2 parents 700ba29 + 676b024 commit d81f4c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions user_guide_src/source/libraries/pagination.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d81f4c5

Please sign in to comment.