I've added a [show all] link to all of the lists displayed in sugar (Contacts, Accounts, Targets etc).
Add to include/ListView/ListViewData.php around 93 (Function getLimit())
Code:/*DWMOD Start – allow variable list lengths */ if(isset($_GET[$this->limitName]) && preg_replace("/\D/","",$_GET[$this->limitName])!="") return($_GET[$this->limitName]); /*DWMOD End*/
Add to include/ListView/ListViewGeneric.tpl around 114 at the bottom of the paging cell <td align='right' nowrap='nowrap' id='listViewPaginationButtons' class='listViewPaginationTdS1' width='90%'>
works in 4.5.1f and 5betaCode:<!-- DWMOD - add show all to list views --> {if $pageData.offsets.total != $pageData.offsets.lastOffsetOnPage} <a href="{$pageData.urls.baseURL}list_max_entries_per_page=10000">[show all]</a> {else} [show all] {/if} <!-- DWMOD End -->
I'm very happy to be corrected on how to do it properly...
Hope this helps someone.
Regards
Daniel Webb
[my first post, thanks for SugarCRM]


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks