
Originally Posted by
chrislynch8
Hi,
For a module I want to remove the edit button icon (Pencil) that appears to the right of all records when in the list view. I only want to do this for one module - this way I restrict user to edit the module from the Subpanel of the related parent record.
Where can I do this as it is not an option in the listviewdefs.php.
Rgds
Chris
The easiest way to do this is to remove editbutton from subpanel definition. You may found that code in child record subpanel definition module/metadata/subpanel/subpanelname.php
PHP Code:
'edit_button'=>array(
'widget_class' => 'SubPanelEditButton',
'module' => $module_name,
'width' => '4%',
),
If you are using this child subpanel for other parent modules, then create copy of the subpanel definition and put the new name in layoutdefs for the parent module.
Regards,
Igor
Bookmarks