I want to hide the "Direct Report" subpanel in contacts module.
Does anybody know how to do this action?
Thanks and regards.
The easiest way to remove a subpanel would be to copy ./modules/Contacts/clients/base/layouts/subpanels/subpanels.php to ./custom/modules/Contacts/clients/base/layouts/subpanels/subpanels.php and make your modifications in the copy of the file to remove the entry that references the Direct Reports (or other) subpanel.
Don't forget to purge the contents of ./cache and reload Sugar after applying your change.
It works correctly.
If doing the above doesn't work. check in ./custom/modules/contacts/metadata/subpaneldefs.php and comment out the subpanel sections you want to remove. I don't know why they are in 2 places or why the metadata file has priority over sidecar but that fixed it for me.
Hi @Brad Foster
Yes the metadata files will be defined in two places as there are some people who would like to go back to bwc from sidecar.Sugar does this so that it works for people who do this.Currently if you do this change your change in custom/modules/Contacts/clients/base/layouts/subpanels/subpanels.php(comment out your metadata for subpanel) would be enough .This is the way to remove subpanels from sidecar modules.
Retrieving data ...