[Enhancement #1232 : Added option for showing records per page in configuration.]
This commit is contained in:
parent
8fe90bc0f6
commit
5b6ce4a6ab
|
|
@ -106,6 +106,12 @@ return [
|
|||
]
|
||||
],
|
||||
'channel_based' => true,
|
||||
], [
|
||||
'name' => 'admin_page_limit',
|
||||
'title' => 'admin::app.admin.system.admin-page-limit',
|
||||
'type' => 'text',
|
||||
'validation' => 'required|numeric|max:2',
|
||||
'channel_based' => true,
|
||||
]
|
||||
]
|
||||
], [
|
||||
|
|
|
|||
|
|
@ -896,6 +896,7 @@ return [
|
|||
'footer-content' => 'Footer Text',
|
||||
'locale-options' => 'Unit Options',
|
||||
'weight-unit' => 'Weight Unit',
|
||||
'admin-page-limit' => 'العناصر الافتراضية لكل صفحة (المشرف)',
|
||||
'design' => 'Design',
|
||||
'admin-logo' => 'Admin Logo',
|
||||
'logo-image' => 'Logo Image',
|
||||
|
|
|
|||
|
|
@ -1185,6 +1185,7 @@ return [
|
|||
'footer-toggle' => 'Toggle footer',
|
||||
'locale-options' => 'Unit Options',
|
||||
'weight-unit' => 'Weight Unit',
|
||||
'admin-page-limit' => 'Default Items Per Page (Admin)',
|
||||
'design' => 'Design',
|
||||
'admin-logo' => 'Admin Logo',
|
||||
'logo-image' => 'Logo Image',
|
||||
|
|
|
|||
|
|
@ -142,6 +142,8 @@ abstract class DataGrid
|
|||
public function __construct()
|
||||
{
|
||||
$this->invoker = $this;
|
||||
|
||||
$this->itemsPerPage = core()->getConfigData('general.general.locale_options.admin_page_limit') ?: $this->itemsPerPage;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue