How to hide subpanels from the Leads

How to hide subpanels from the Leads?

See Screenshot: https://nimb.ws/eXRa2U

Hi!

You can hide individual subpanels from a particular module by unsetting them in the Layoutdefs

custom/Extension/modules/Leads/Ext/Layoutdefs/HideTheseSubpanels.php

This file can be called anything, I have only named it HideTheseSubpanels.php

For each subpanel you wish to unset obtain the name of the relationship and swap {MODULE_RELATIONSHIP} with it. Remember to repair and rebuild after saving this new file.

unset($layout_defs['Leads']['subpanel_setup']['{MODULE_RELATIONSHIP}']);

Hope that helps!

Can I make it without coding?

Using Admin option. Please give the details

Some of these customizations (not all) can be achieved from

Admin / Display Modules and Subpanels

Hello @pgr,

This will hide that module from all module’s subpanel, but I just want to hide only in the particular module’s subpanel. How can we do it? :melting_face:

You can follow the post above by @samus-aran

1 Like