For anybody looking for the answer to this question look at http://www.sugarcrm.com/forums/showthread.php?t=36530
What the Andopes meant in this thread is what he has in the thread I reference above. If you do what's in the current thread it will get overritten. Instead you create the layoutdefs.ext.php in the path I list here. Then when you rebuild Extensions it will write the changes into the file noted in the quote below.
Just create the file custom/Extension/modules/<ModuleName>/Ext/Layoutdefs/layoutdefs.ext.php
For example, I wanted to get rid of the quick create form and just go to full form but also leave the ability to select opportunities manually. So I created a layoutdefs.ext.php in Contacts folder in the above mentioned path. Then rebuilt extensions. Got what I wanted.
Much thanks to Andopes
Code:
<?php
$layout_defs["Contacts"]["subpanel_setup"]["opportunities"]["top_buttons"] = array(
array('widget_class' => 'SubPanelTopCreateButton'),
array('widget_class' => 'SubPanelTopSelectButton', 'mode'=>'MultiSelect'),
);
?> 
Originally Posted by
andopes
Hi, Jay.
You can do that editing the custom metadata modules:
custom/modules/YourModule/Ext/Layoutdefs/layoutdefs.ext.php
In case of Opportunities, put this lines inside the file custom/modules/Opportunities/Ext/Layoutdefs/layoutdefs.ext.php:
PHP Code:
<?php
foreach($layout_defs['Opportunities']['subpanel_setup']['contacts']['top_buttons'] as $id => $defs) {
if($defs['widget_class'] == 'SubPanelTopCreateAccountNameButton') {
$layout_defs['Opportunities']['subpanel_setup']['contacts']['top_buttons'][$id]['widget_class'] = 'SubPanelTopCreateButton';
}
}
?>
Do it for every module you want to modify their subpanels.
This is an upgrade safe customization.
Cheers.
--
André Lopes
Lâmpada Global Services
Rua Bela Cintra, 299 conjunto. 51
São Paulo, SP 01415-000
tel1. 55 11 3237-3110
cel. 55 11 7636-5859
e-mail:
info@lampadacrm.com.br
Bookmarks