I am using the following:
Sugar 5.0.0.d
SQL 2005
IIS
PHP 5.2.5
Windows 2003
I am attempting to remove the delete button from some of my listview pages. I have tried to create a view.list.php file and put it in the custom\modules\<mod name>\views directory. My view.liist.php contains the following code:
<?php
require_once('include/MVC/View/views/view.list.php');
class cust1_IndividualsViewList extends ViewList {
function cust1_IndividualsViewList(){
parent::ViewList();
}
function display(){
$lv = new ListViewSmarty();
$lv->delete = false;
}
}
?>
This displays the header info, but a blank page. I do know that if I go into the include\listview folder and modify the ListViewSmarty.php, I can change the var $delete from true to false. When I do this, of course, all of my list view pages do not contain a delete button. I would prefer to remove the delete button on a one by one basis. Any help on this would be much appreciated.
Thanks!
Keith Heald
Market Advantage


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks