Admin List pages - change default number of results

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
jafo66
Posts: 65
Joined: 06 Mar 2024, 04:42

Admin List pages - change default number of results

Post by jafo66 » 28 Jun 2024, 04:11

Is there a way to change the default number of rows returned in a list page from 25 to say 100? A follow up to that is how do I get the user's selection to stay at 100 once they have selected it?

I saw in the pagination.php file that there seems to be a look up for 'page/limit', but I didn't see how that would be set somewhere else.

Thanks!

User avatar
aimeos
Administrator
Posts: 8217
Joined: 01 Jan 1970, 00:00

Re: Admin List pages - change default number of results

Post by aimeos » 30 Jun 2024, 13:39

jafo66 wrote: 28 Jun 2024, 04:11 Is there a way to change the default number of rows returned in a list page from 25 to say 100? A follow up to that is how do I get the user's selection to stay at 100 once they have selected it?
The default number is not configurable and defined here:
https://github.com/aimeos/ai-admin-jqad ... e.php#L622

But once selected by the user, the choice remains for that list view as long as the session is available.
jafo66 wrote: 28 Jun 2024, 04:11 I saw in the pagination.php file that there seems to be a look up for 'page/limit', but I didn't see how that would be set somewhere else.
Only by a choice of the user. The "page[limit]" parameter is then part of the URL.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

jafo66
Posts: 65
Joined: 06 Mar 2024, 04:42

Re: Admin List pages - change default number of results

Post by jafo66 » 02 Jul 2024, 04:08

Would you be willing to make that a configuration value instead of hard coded?

User avatar
aimeos
Administrator
Posts: 8217
Joined: 01 Jan 1970, 00:00

Re: Admin List pages - change default number of results

Post by aimeos » 02 Jul 2024, 08:13

Yes, no problem if you can create a PR for that :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply