在SugarCRM 7.x中删除自定义模块的子面板

I'm looking to remove a custom module's (pc_songs) subpanel from the Opportunities subpanel area.

I've looked in modules/Opportunities/clients/base/layouts/subpanels/subpanels.php The pc_songs subpanel isn't in the array.

I've also looked in modules/Opportunities/metadata/subpaneldefs.php I don't see an entry for pc_songs here either.

The subpanel does show up in the detail view. Can anyone show me how to remove/hide a custom subpanel or even point me to where custom modules are added to the stock subpanel array?

In SugarCRM 7, custom subpanels are stored in the following directory:

custom/Extension/modules/{module}/Ext/clients/base/layouts/subpanels

You will probably see a file akin to pc_songs_opportunities_Opportunities.php

If you want it to not display, please try to either:

  • Remove the file
  • Comment out the code in the file
  • create a "disabled" directory, and place the file inside

After you do that, go to Admin -> Repair -> Quick Repair and Rebuild, and your subpanel should no longer display in Opportunities.

Here's the Documentation on subpanels in 7.7.

Subpanels can also be easily hidden via the Administration panel. You can decide what modules appear in subpanels or in the main app navigation header.