CMS MADE SIMPLE FORGE

Form Browser

 

[#2400] Rows per page (in list view)

avatar
Created By: Ondra Kotecky (kotecky)
Date Submitted: Thu Jul 10 03:47:04 -0400 2008

Assigned To:
Version: None
CMSMS Version: None
Severity: None
Resolution: None
State: Open
Summary:
Rows per page (in list view)
Detailed Description:
The rows per page (in list view) in both the admin and user sides should better
be an input so the admin could ask the browser to show 1000 or 1031 entries if
it suites him better.


History

Comments
avatar
Date: 2013-10-07 19:36
Posted By: John Moore (jomoweb)

It's debatable if this would be better UX as a text field, but this is a pretty
easy one to customize if you want.  You just have to chase down the source code,
which takes practice and a good source code searcher.  I like Sublime Text 2 
with the find in folder feature.

In v 0.4.2, this bit of code comes from the
modules/FormBrowser/classesBrowser.class.php file.

Look for the block of code below and you can add/subtract any options possible. 
Just remember that if you ever upgrade the file, you will need to re-edit this.

Tip: Adding 'All' => '-1' should show all records.
		$rowsOptions = array('1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5',
			'6'=>'6','7'=>'7','8'=>'8','9'=>'9','10'=>'10',
			'11'=>'11','12'=>'12','13'=>'13','14'=>'14','15'=>'15',
			'16'=>'16','17'=>'17','18'=>'18','19'=>'19','20'=>'20',
			'25'=>'25','30'=>'30','35'=>'35','40'=>'40','45'=>'45',
			'50'=>'50','60'=>'60','70'=>'70','80'=>'80','90'=>'90',
			'100'=>'100','200'=>'200', '300'=>'300','400'=>'400',
			'500'=>'500','1000'=>'1000','1500'=>'1500');