Hide tab but show Subpanel : Simplified
In admin go to
Admin> Configure Tabs> and Hide the tab in which you do not want to show.
Go to
Sugar_Directory\modules\Module_You_Want_Subpanel_T o_Show_In \metadata\subpaneldefs.php
Underneath the licensing text add the following
Make sure this is done only ofter you have deployed your module.
Code:
// Hide Tabs But Show SubPanels in related Modules
global $modules_exempt_from_availability_check;
$modules_exempt_from_availability_check['module_name'] = 'module_name';
Example:
You create a New package with the following:
Package Name: TestPackage
Key: tst
You create a module with the following:
Module Name: Test1
Label: Test1
Then You Deploy your Package.
You would replace module_name in the above code with the Key and the Module Name you assigned in this the key was tst and the Module name was Test1.
So every instance of
in the above code would be changed to
So your new code would look like this:
Code:
// Hide Tabs But Show SubPanels in related Modules
global $modules_exempt_from_availability_check;
$modules_exempt_from_availability_check['tst_Test1'] = 'tst_Test1';
I used the following posts as reference on this.
http://www.sugarcrm.com/forums/showthread.php?t=28565
Which was linked to from this post
http://www.sugarcrm.com/forums/showthread.php?t=28079
There was an un necessary step in that tutorial which happend to be step 1. The unecessary step was to make the edit to the manifest.php file. I found that each time I would disable the Tab through the manifest file whenever I would re-deploy after a new Package edit I would lose my settings and the manifest.php file would revert back. Way around was to just not edit the manifest.php file and disable the tab through the admin so the changes would stay.
Also cleaned up commenting, added generic text for user arts and crafts (copy, paste and replace) 
Put it up becasue I looked around alot for a solid answer and those 2 posts were pretty much right on the money but I ran into my issue with the manifest file.
Also removes one more core edit whcih is always nice when it can be avoided.
Hope it helps .
Good Luck
P.Franco
Bookmarks