1

I need to make the pagination show some amount of pages saying 5 then show the dots and last page. Making it look like:

1 2 3 4 5 ... 20

pager.phtml already has those within the template, but they depend on the following methods

canShowNextJump();
canShowLast();

both are defined within Magento\Theme\Block\Html\Pager

Is there any combination of Admin settings to achieve that or I will need to override methods/values in Pager block?

2
  • you want to pagination show this type 1 2 3 4 5 ... 20 ??? Commented Jun 11, 2020 at 18:24
  • @MohitPatel, this has to look like < 1 2 3 4 5 ... 20 > where '20' is the last page Commented Jun 12, 2020 at 6:30

1 Answer 1

0

Add at Content > Design > Configuration > your Theme > Pagination > Pagination Frame Skip => 10 or try what is good for you enter image description here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.