By default, vTiger CRM displays records in lists of 20 but there are occasions when it would be really useful to display many more per page. It may be that you want to do a mass edit or email, and selecting just 20 records at a time is time consuming. (Note: in version 5.4, vTiger does have the feature to select ‘ALL’ records for mass edits, emails etc., but if you have a lot of records, say in excess of 500 selected, this can cause timeout issues).
vTiger sets the limit of number of records per page for each module in a file called ListView.php. Using an FTP client, download the ListView.php file for each module you wish to update (Leads, Contacts, Accounts etc) and look for the line:
global $list_max_entries_per_page;
Then ‘after’ that line add the following code.
//* Shows more records per page in a list view according to ‘Other Phone’ field in user preferences global $adb; $result = $adb->query(“SELECT vtiger_users.phone_other FROM vtiger_users WHERE vtiger_users.id = “.$current_user->id); $record = $adb->fetchByAssoc($result); if ($record[‘phone_other’] != ” && is_numeric($record[‘phone_other’]) && $record[‘phone_other’] < 10000) { $list_max_entries_per_page = $record[‘phone_other’]; }
You can adjust the number of records per page by editing the ‘Other Phone’ field in My Preferences.
I found this code on one of the vTiger forums so thank you to the person who wrote and shared it.