joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

Define custom value for the total of page to display inside the pagination

Open carlitorweb opened this issue 9 months ago • 2 comments

Is your feature request related to a problem? Please describe.

The total of page to display is set hardcode inside the Pagination class https://github.com/joomla/joomla-cms/blob/e11bd13a7e60b40bac729472d20675164ed30bbe/libraries/src/Pagination/Pagination.php#L157

Describe the solution you'd like

Can be one or both:

  • Define a global configuration param
  • Define a param in the menu items where pagination is set

carlitorweb avatar May 08 '24 21:05 carlitorweb

What is the use case for changing this

brianteeman avatar May 08 '24 21:05 brianteeman

Allow the users define the amount of page they want list in their pagination layout, depending of they template design. Right now if 10 is to big for your layout, as alternative, you need change the layout trought a override and hide this page list, leaving only the previous and next buttons.

carlitorweb avatar May 08 '24 22:05 carlitorweb

Moving the issue to discussion section

carlitorweb avatar May 24 '24 19:05 carlitorweb