Results 1 to 7 of 7

Thread: Hiding a tab but still showing the subpanels in related modules.

  1. #1
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Hiding a tab but still showing the subpanels in related modules.

    I would like to be able to use some generated modules from Module Builder, install them as normally but I am looking for a option in the manifest.php file.

    $installdefs = array (
    'id' => 'ResourceManagement',
    'beans' =>
    array (
    0 =>
    array (
    'module' => 'inux_Skill',
    'class' => 'inux_Skill',
    'path' => 'modules/inux_Skill/inux_Skill.php',
    'tab' => true,
    'subpanel' => true,

    ),

    There is some additional information here.

    http://www.sugarcrm.com/forums/showt...panel+hide+tab

    Does anyone know if this is possible within the framework as it is today?

    Regards
    Ken

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Hiding a tab but still showing the subpanels in related modules.

    Hi, Ken.

    Insert this piece of code at the top of subpanel_defs.php of inux_Skill module:

    PHP Code:
    global $modules_exempt_from_availability_check;

    $modules_exempt_from_availability_check['inux_Skill'] = 'inux_Skill'
    Cheers

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  3. #3
    kenneth.thorman is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    191

    Default Re: Hiding a tab but still showing the subpanels in related modules.

    Hi André

    Thank you very much

  4. #4
    julian's Avatar
    julian is offline Sugar Team Member
    Join Date
    Sep 2004
    Posts
    1,639

    Default Re: Hiding a tab but still showing the subpanels in related modules.

    This would make a great wiki article... just noting that so I can post it later, unless one of you wants to!

    http://www.sugarcrm.com/wiki/index.p...Developer_Wiki
    Julian Ostrow
    Systems and Applications Engineer
    SugarCRM Inc.

  5. #5
    zhunter is offline Member
    Join Date
    Jun 2009
    Posts
    5

    Default Re: Hiding a tab but still showing the subpanels in related modules.

    I just wanted to mention, that using 5.2.0f, I made the following changes to hide a few tabs while showing subpanels.

    Example:
    I'm using the SecuritySuite for team authorization in the open source verison, I wanted to allow leads to be assigned to a Group, but I did not want the SecuritySuite tab to be displayed.

    File to change:
    \custom\modules\Leads\Ext\Layoutdefs\layoutdefs.ex t.php

    Code to add:
    global $modules_exempt_from_availability_check;
    $modules_exempt_from_availability_check['SecurityGroups'] = 'SecurityGroups';

  6. #6
    jbeauchamp is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Gilbert, AZ
    Posts
    39

    Default Re: Hiding a tab but still showing the subpanels in related modules.

    This method is safer for future customizations:

    1. Create a file (the name doesn't matter) with the code below and replace "ChildModule" with the name of the subpanel module.
      PHP Code:
      <?php 
      global $modules_exempt_from_availability_check;
      $modules_exempt_from_availability_check['ChildModule'] = 'ChildModule';
      ?>
    2. Save this file to custom/Extension/modules/<ParentModule>/Ext/Layoutdefs/ where "ParentModule" is the name of the module where the subpanel will be displayed.
    3. Admin > Repair > Quick Repair and Rebuild.



    For example:
    custom/Extension/modules/Accounts/Ext/Layoutdefs/showDisabledModuleSubpanel.php

  7. #7
    zhunter is offline Member
    Join Date
    Jun 2009
    Posts
    5

    Default Re: Hiding a tab but still showing the subpanels in related modules.

    I've made this change on 2 custom modules and they seemed to work perfect, but I'm getting a "Warning: You do not have permission to access this module.". I checked the settings under Roles and the modules are enabled and the users have access "All". By doing this override, do I need to change something to allow users to continue to use the module after the tab has been hidden??

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2007-10-01, 10:15 PM
  2. Hiding subpanels
    By richardhakim in forum Help
    Replies: 2
    Last Post: 2006-11-27, 09:39 AM
  3. Example tab with subpanels and relationships
    By eggsurplus in forum Downloads
    Replies: 20
    Last Post: 2006-10-08, 11:12 PM
  4. Showing related campaigns in Account/Contact pages
    By JMS in forum Feature Requests
    Replies: 0
    Last Post: 2005-11-14, 12:33 PM

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
  •