An easy way is to create a custom view.list.php for the module and implement the method listViewProcess:
PHP Code:
function listViewProcess() {
if(isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
$tpl = 'custom/include/ListView/ListViewReports.tpl';
} else {
$tpl = 'include/ListView/ListViewGeneric.tpl';
}
$this->processSearchForm();
$this->lv->searchColumns = $this->searchForm->searchColumns;
if(empty($_REQUEST['search_form_only']) || $_REQUEST['search_form_only'] == false) {
$this->lv->setup($this->seed, $tpl, $this->where, $this->params);
echo get_form_header($GLOBALS['mod_strings']['LBL_LIST_FORM_TITLE'], '', false);
echo $this->lv->display();
}
}
Kind regards
Bookmarks