Results 1 to 1 of 1

Thread: Hide tab but keep active / Show Subpanel : Simplified

  1. #1
    Pfranco is offline Junior Member
    Join Date
    Jul 2008
    Posts
    4

    Default Hide tab but keep active / Show Subpanel : Simplified

    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
    Code:
    module_name
    in the above code would be changed to
    Code:
    tst_Test1
    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
    Last edited by Pfranco; 2008-07-11 at 05:37 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Subpanel Opportunities in Tab Contacts
    By pikpik in forum Help
    Replies: 0
    Last Post: 2007-11-14, 04:01 PM
  2. Replies: 1
    Last Post: 2007-04-09, 05:11 PM
  3. Creating sub-accounts that don't show under Accounts tab
    By rriedle in forum Feature Requests
    Replies: 0
    Last Post: 2007-04-08, 02:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •