You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently items per page pagination in admin interface is harcoded in controllers to 100 items per page (ChannelController, OrderController, ProductController and PropertyController), which seems a little bit too much.
It would be nice to have this value configurable, I see two possible approches:
Option 1. Via a config setting in config/concord.php, like:
Hey, sorry for the slow reaction. Yep, it completely makes sense.
The only reason why I'm reluctant to add it (to the framework) is that most people want to use the framework without the admin.
So it'll be decoupled soon, in a backward-compatible manner.
The effect of the decoupling to this particular initiative is solely naming, the config will be vanilo.admin instead of vanilo.framework.
Hey, sorry for the slow reaction. Yep, it completely makes sense.
The only reason why I'm reluctant to add it (to the framework) is that most people want to use the framework without the admin.
So it'll be decoupled soon, in a backward-compatible manner.
The effect of the decoupling to this particular initiative is solely naming, the config will be vanilo.admin instead of vanilo.framework.
Currently items per page pagination in admin interface is harcoded in controllers to 100 items per page (ChannelController, OrderController, ProductController and PropertyController), which seems a little bit too much.
It would be nice to have this value configurable, I see two possible approches:
Option 1. Via a config setting in config/concord.php, like:
and then in src/Http/Controllers/OrderController.php
Option 2. Or maybe a simpler and global solution would be to just use the default eloquent pagination of 15 items:
And override this seeting via custom model as described in documentation:
How does that sound?
The text was updated successfully, but these errors were encountered: