AnsweredAssumed Answered

Hide panels or subpanels

Question asked by cesara on Feb 4, 2016

Good Morning:

I'm new to the subject, I 'm trying to hide certain sub panels, for example :

" Leads" , I followed the instructions in " http://developer.sugarcrm.com/2012/05/25/hiding-subpanels-thru-configuration-and-thru-code/ "

In my case : modules / leads / metadata / subpanelsdefs.php

 

/ Custom / Extension / modules / Leads / Ext / Layoutdefs /

In this direction I have 2 files leads_sf2_log_asignacion_1_Leads.php

and

_overrideLead_subpanel_leads_sf2_log_asignacion_1.php

 

Finally my file which should reflect the changes

/custom/modules/leads/Ext/Layoutdefs/layoutdefs.ext.php

 

Case included

< ? Php

unset ( $ layout_defs [ "Leads" ] [ " subpanel_setup ' ] [' leads_sf2_log_asignacion_1 ']);

And I run fast repair .

but you can not hide the subpanel.

 

I have performed the steps you mention me , but there is no result, the subpanel is not hidden

It has commented code leads_sf2_log_asignacion_1_Leads.php

/*

 

$layout_defs["Leads"]["subpanel_setup"]['leads_sf2_log_asignacion_1'] = array (

  'order' => 100,

  'module' => 'SF2_Log_Asignacion',

  'subpanel_name' => 'default',

  'sort_order' => 'asc',

  'sort_by' => 'id',

  'title_key' => 'LBL_LEADS_SF2_LOG_ASIGNACION_1_FROM_SF2_LOG_ASIGNACION_TITLE',

  'get_subpanel_data' => 'leads_sf2_log_asignacion_1',

  'top_buttons' =>

  array (

    0 =>

    array (

      'widget_class' => 'SubPanelTopButtonQuickCreate',

    ),

    1 =>

    array (

      'widget_class' => 'SubPanelTopSelectButton',

      'mode' => 'MultiSelect',

    ),

  ),

);

*/

 

It has commented code _overrideLead_subpanel_leads_sf2_log_asignacion_1.php

<?php

 

 

//auto-generated file DO NOT EDIT

/*$layout_defs['Leads']['subpanel_setup']['leads_sf2_log_asignacion_1']['override_subpanel_name'] = 'Lead_subpanel_leads_sf2_log_asignacion_1';

?>*/

I've added the line of code

<?php

unset($layout_defs["Leads"]["subpanel_setup"]['leads_sf2_log_asignacion_1']);

in the file  layoutdefs.ext.php

I made rapid repair Admin

but the module still visibleCaptura leads.PNG

Outcomes