joomla-cms
joomla-cms copied to clipboard
Define custom value for the total of page to display inside the pagination
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
What is the use case for changing this
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.
Moving the issue to discussion section