Hello All,
to remove the export button you can do that:
in custom/modules/Accounts/views/view.list.php
PHP Code:
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.list.php');
class AccountsViewList extends ViewList {
function preDisplay(){
$this->lv = new ListViewSmarty();
$this->lv->delete = false;
}
}
and to create a button one good idea is in this same file (view.list.php) you do that:
PHP Code:
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.list.php');
class AccountsViewList extends ViewList {
function listViewProcess(){
$this->processSearchForm();
$this->lv->searchColumns = $this->searchForm->searchColumns;
if(!$this->headers)
return;
if(empty($_REQUEST['search_form_only']) || $_REQUEST['search_form_only'] == false){
$this->lv->setup($this->seed, 'custom/include/ListView/ListViewIntegration.tpl', $this->where, $this->params);
$savedSearchName = empty($_REQUEST['saved_search_select_name']) ? '' : (' - ' . $_REQUEST['saved_search_select_name']);
echo get_form_header($GLOBALS['mod_strings']['LBL_LIST_FORM_TITLE'] . $savedSearchName, '', false);
echo $this->lv->display();
}
}
}
?>
you can see in this line:
$this->lv->setup($this->seed, 'custom/include/ListView/ListViewIntegration.tpl', $this->where, $this->params);
I change the tpl file, in this tpl you can call you custom pagination tpl with the new button.
Bookmarks