/
Usage of system setting for default per-page [5.2.1]

Usage of system setting for default per-page [5.2.1]

By default 20 items are displayed on each grid page. Default items per page count is read from DefaultGridPerPage system setting. If there is a need to override this on per-unit basis, then it's possible to specify names of responsible system setting names like so in the unit config file:

'ConfigMapping' => array(
	'PerPage' => 'Perpage_Category',
	'ShortListPerPage' => 'Perpage_Category_Short',
),

There is bug however in the implementation of that system, which forces developer to define these system settings in case if ConfigMapping is present in unit config.

Places, that needs to be fixed (by checking for PerPage and/or ShortListPerPage keys first):

  • kDBEventHandler::getPerPage
  • ListHelper::getDefaultPerPage

Related Tasks