I am working on a SilverStripe project. In my project, I am building a model admin class to display the list of records within the CMS. I am trying to limit the number of records rendered per page. So I put $page_length field in my model admin class like this.
class OrderAdmin extends ModelAdmin
{
private static $managed_models = [
Order::class
];
private static $url_segment = 'orders';
private static $menu_title = 'Orders';
private static $menu_icon_class = 'font-icon-checklist';
private static $page_length = 25;
//other code goes here
}
As you can see, in the code above, I set the number of records per page to 25. Even though I set it to 25, it is still displaying 15 records per page within the CMS. I rebuilt and refreshed the project as well. What is missing in my code and how can I fix it?