This is an old revision of the document!


vtigerCRM 6.0 Modifications

permanently show number of available records in filter

To not only display this number, if you hover with your mouse, you could do the following modifications:
At first: If you don't see the total number of records on hover over the page numbers, you have to activate “LISTVIEW_COMPUTE_PAGE_COUNT” in config.performance.php

File: layouts/vlayout/modules/Vtiger/ListViewActions.tpl

Search:

{if $LISTVIEW_ENTIRES_COUNT}{$PAGING_MODEL->getRecordStartRange()} {vtranslate('LBL_to', $MODULE)} {$PAGING_MODEL->getRecordEndRange()}{/if}

Add after:

 | Total: {$LISTVIEW_COUNT}

File: layouts/vlayout/modules/Vtiger/resources/List.js

Search:

var pageNumberText = pageStartRange+" "+app.vtranslate('to')+" "+pageEndRange;

Replace with

var pageNumberText = pageStartRange+" "+app.vtranslate('to')+" "+pageEndRange + " | Komplett: " + jQuery('#totalCount').val();