In the Accounts module there is a sub panel for Activities and I want to remove the "Create Task" and "Schedule Meeting" buttons but can't figure it out. Any ideas?
Thanks in advance.
In the Accounts module there is a sub panel for Activities and I want to remove the "Create Task" and "Schedule Meeting" buttons but can't figure it out. Any ideas?
Thanks in advance.
You need to create an extended Layoutdefs for Accounts:
custom/Extension/modules/Accounts/Ext/Layoutdefs/layoutdefs.ext.php
Add a code to unset the buttons for the subpanel activities.
Go to Admin -> Repair -> Rebuild ExtensionsPHP Code:<?PHP
$buttons_to_remove = array('SubPanelTopCreateTaskButton', 'SubPanelTopScheduleMeetingButton');
foreach($layout_defs['Accounts']['subpanel_setup']['activities']['top_buttons'] as $id => $button_def) {
if(in_array($button_def['widget_class'], $buttons_to_remove)) {
unset($layout_defs['Accounts']['subpanel_setup']['activities']['top_buttons'][$id]);
}
}
?>
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Hello Andopes,
I followed your advise and it worked only before I did repair. After repair of extensions the code despaired . Maybe you know of another good place to put it so it will stay.
Thanks a lot for your very helpful post
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Thanks a lot for your help, you are exactly right.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks