This blog will explain in detail how to add a button on Subpanel in SugarCRM 7. We will be adding a “Add Exams” button on Exams Subpanel (Custom module) of Contact detail view.
We will require to extend the View “panel-top” for the module on which you want to add subpanel top button. Create a file at following path
Copy the code from clients/base/views/panel-top/panel-top.php and paste into panel-top-for-contacts.php file, we just created.
Add the following code in the button array of panel-top-for-contacts.php file.
$app_strings['LBL_ADD_EXAM'] = "Add Exams";
- No Comments Found.