-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Replace SimplePagination with SlidingWindowPagination
Relates: #259
- Loading branch information
Showing
8 changed files
with
76 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...hangelog/7.1/Feature-259-ReplaceSimplePaginationWithSlidingWindowPagination.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.. include:: ../../Includes.rst.txt | ||
|
||
===================================================================== | ||
Feature: #259 - Replace SimplePagination with SlidingWindowPagination | ||
===================================================================== | ||
|
||
See `Issue 259 <https://github.com/extcode/cart_products/issues/259>`__ | ||
|
||
Description | ||
=========== | ||
|
||
If you have a long list of products, you would like to display them in a pagination | ||
with a defined number of products per page. This is already possible with the | ||
TypoScript configuration `itemsPerPage`. With a large number of products, the | ||
display of all page links may not work well, especially when it comes to the | ||
display on mobile devices. | ||
The TYPO3 core offers the SlidingWindowPagination since TYPO3 v12. | ||
This is compatible with the previously used SimplePagination if you pass the | ||
value 0 for the number of links. | ||
|
||
Integration | ||
=========== | ||
|
||
Set the new TypoScript configuration variable `plugin.tx_cartproducts.maximumNumberOfLinks` to a value greater than 0. | ||
If you use an own template file for `Resources/Private/Partials/Utility/Paginator.html` you have to adapt the changes | ||
to your file. | ||
|
||
.. index:: Frontend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. include:: ../../Includes.rst.txt | ||
|
||
7.1 Changes | ||
=========== | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
:depth: 1 | ||
|
||
Features | ||
^^^^^^^^ | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:titlesonly: | ||
:glob: | ||
|
||
Feature-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ ChangeLog | |
:maxdepth: 5 | ||
:titlesonly: | ||
|
||
7.1/Index | ||
7.0/Index | ||
6.0/Index | ||
5.0/Index | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters