You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/libraries/pagination.rst
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,7 @@ hasPrevious() & hasNext()
233
233
-------------------------
234
234
235
235
These methods return a boolean ``true`` if there are more links that can be displayed on either side of the current page,
236
-
based on the value passed to ``setSurroundCount()``.
236
+
based on the value passed to `setSurroundCount()`_.
237
237
238
238
For example, let's say we have 20 pages of data. The current
239
239
page is page 3. If the surrounding count is 2, then the following links would show up like this::
@@ -254,12 +254,12 @@ For example, you have the current page set at 5 and you want to have the links b
254
254
255
255
``getPrevious()`` returns the URL for page 2. ``getNext()`` returns the URL for page 8.
256
256
257
-
If you want to get page 4 and page 6, use ``getPreviousPage()`` and ``getNextPage()`` instead.
257
+
If you want to get page 4 and page 6, use `getPreviousPage() & getNextPage()`_ instead.
258
258
259
259
getFirst() & getLast()
260
260
----------------------
261
261
262
-
Much like ``getPrevious()`` and ``getNext()``, these methods return the **URL** to the first and last pages in the
262
+
Much like `getPrevious() & getNext()`_, these methods return the **URL** to the first and last pages in the
263
263
result set.
264
264
265
265
links()
@@ -270,9 +270,9 @@ title, which is just the number, and a boolean that tells whether the link is th
270
270
271
271
.. literalinclude:: pagination/013.php
272
272
273
-
In the code presented for the standard pagination structure, the methods ``getPrevious()`` and ``getNext()`` are used to obtain the links to the previous and next pagination groups respectively.
273
+
In the code presented for the standard pagination structure, the methods `getPrevious() & getNext()`_ are used to obtain the links to the previous and next pagination groups respectively.
274
274
275
-
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()`` and ``getNext()`` methods with ``getPreviousPage()`` and ``getNextPage()``, and the methods ``hasPrevious()`` and ``hasNext()`` by ``hasPreviousPage()`` and ``hasNextPage()`` respectively.
275
+
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.
This method returns a boolean ``true`` if there are links to a page before and after, respectively, the current page being displayed.
285
285
286
-
Their difference to ``hasPrevious()`` and ``hasNext()`` is that they are based on the current page while ``hasPrevious()`` and ``hasNext()`` are based on the set of links to be displayed before and after the current page based on the value passed in ``setSurroundCount()``.
286
+
Their difference to `hasPrevious() & hasNext()`_ is that they are based on the current page while `hasPrevious() & hasNext()`_ are based on the set of links to be displayed before and after the current page based on the value passed in `setSurroundCount()`_.
287
287
288
288
For example, let's say we have 20 pages of data. The current
289
289
page is page 3. If the surrounding count is 2, then the following links would show up like this::
@@ -296,7 +296,7 @@ page is page 3. If the surrounding count is 2, then the following links would sh
296
296
getPreviousPage() & getNextPage()
297
297
---------------------------------
298
298
299
-
These methods return a **URL** for the previous and next pages in relation to the current page being displayed, unlike ``getPrevious()`` and ``getNext()`` that return the URL for the previous or next pages of results on either side of the numbered links. See the previous paragraph for a full explanation.
299
+
These methods return a **URL** for the previous and next pages in relation to the current page being displayed, unlike `getPrevious() & getNext()`_ that return the URL for the previous or next pages of results on either side of the numbered links. See the previous paragraph for a full explanation.
300
300
301
301
For example, you have the current page set at 5 and you want to have the links before and after (the surroundCount) to be 2 each, that will give you something like this::
0 commit comments