Results 1 to 5 of 5

Thread: How do I remove Member Organizations panel from group tabs

  1. #1
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    552

    Default How do I remove Member Organizations panel from group tabs

    I'm trying to set up the group tabs to contain only the items we use and put them in the right order.

    I found the Configure Grouped Tabs admin tool, then discovered I could drag the panels where I wanted in the actual view, so I'm 95% there.

    But the Member Organizations panel shows up in Accounts view for all tabs (except Activities) but is nowhere to be found in the Configure Grouped tabs admin window.

    How do I get rid of it?

    Side comments:

    I was frustrated that the Configure Grouped Tabs admin tool let you drag the panels up or down to apparently define the order, but then they were not in that order in Account Detail view. Once I found I could drag the panels in Account Detail, it solved the problem, but why didn't it use the order I set in the admin tool?

    Also, it appears dragging the panels is user specific and I want to set the default order for all users. Then if they choose to re-order them it's their preference.

    Any way to set the panel order in each tab for all users?

    Thanks

    Phil

  2. #2
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    552

    Default Re: How do I remove Member Organizations panel from group tabs

    Sorry, I confused two different features.

    The tabs I want to configure are the tabs in Detail views just below the detail information. For example on the Account Detail view, just below Account Detail there are tabs for:

    All Sales Marketing Support Activities Collaboration

    Under the Sales tab, I want the Contacts list at the top, then Opportunities, then Activities, then History Notes.

    I can drag them to the order I want, but I cannot delete the Member Organizations panel.

    That's what I'm still trying to solve.


    The Configure Grouped Tabs admin tool is for something completely different (which is why it didn't work )

    Phil

  3. #3
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    552

    Default Re: How do I remove Member Organizations panel from group tabs

    Well, I made the Member Organizations panel go away by commenting it out in ./modules/Accounts/metadata/subpaneldefs.php

    But that seems like a hack.

    Anyone have a more appropriate way to handle this?

    Phil

  4. #4
    confire is offline Senior Member
    Join Date
    Sep 2009
    Posts
    40

    Default Re: How do I remove Member Organizations panel from group tabs

    I think I just found out the solution.

    1. create a .php file in folder: /custom/Extension/modules/Accounts/Ext/Layoutdefs/, like: _overrideAccountSubpanel.php

    2. copy /modules/Accounts/metadata/subpaneldefs.php's contents to your php file.

    3. remove this line(Actually, I don't know whether this step is necessary or not):
    PHP Code:
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 
    4. add a new code at begin(this code will reset all system subpanel setup)
    PHP Code:
    <?php
    $layout_defs
    ['Accounts'] = array();
    .......
    .....
    5. then, you are free to edit below layout_defs to you want.

    6. don't forget 'Quick repair'.

    btw, you can find all about 'custom folder' here: http://developers.sugarcrm.com/docs/...4.html#9002252
    Last edited by confire; 2009-09-17 at 03:54 AM.

  5. #5
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    552

    Default Re: How do I remove Member Organizations panel from group tabs

    Thanks.

    That's the path in Custom that I needed, so now I can more comfortably edit at will. I'll try it.

    I don't think it is wise to delete the SugarEntry line in your step 3. It provides a good internal consistency check and prevents external tools from accessing Sugar internal information (like user information) and variable arrays. So unless you are removing it for a very specific purpose and are willing to take responsibility for safegurarding the Sugar environment, I'd leave it there.

    Phil

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remove tabs from Detail vie sub panel
    By Mithun in forum Developer Help
    Replies: 8
    Last Post: 2010-06-20, 10:37 PM
  2. Member Organizations Subpanel
    By Chopwood in forum Help
    Replies: 3
    Last Post: 2009-09-17, 11:57 PM
  3. Showing Member Organizations of Account
    By Lennu in forum General Discussion
    Replies: 0
    Last Post: 2006-03-27, 01:31 PM
  4. Member of Multiple Organizations not possible?
    By synessence in forum General Discussion
    Replies: 0
    Last Post: 2005-07-16, 12:38 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
  •