Results 1 to 6 of 6

Thread: Showing more than 10 tabs in Sugar 6.0

  1. #1
    avadtechnologies is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    28

    Default Showing more than 10 tabs in Sugar 6.0

    I would like to be able to view more than 10 tabs without an overflow menu showing up. I have accomplished this before but 6.0 is giving me problems. I found out how to change the drop down menu to go all the way up to 20 with the following in sugar_root/modules/users/editview.php:
    Code:
    $sugar_smarty->assign("MAX_TAB_OPTIONS", range(1, 10));
    But whenever I select an amount over 10, it reverts my settings back down to 7 (which is the default max tabs in config.php). I think due to something in the following code:
    Code:
    $user_max_tabs = $focus->getPreference('max_tabs');
    if(isset($user_max_tabs) && $user_max_tabs > 0) {
    	$sugar_smarty->assign("MAX_TAB", $user_max_tabs);
    } elseif(SugarThemeRegistry::current()->maxTabs > 0) {
        $sugar_smarty->assign("MAX_TAB", SugarThemeRegistry::current()->maxTabs);
    } else {
        $sugar_smarty->assign("MAX_TAB", $GLOBALS['sugar_config']['default_max_tabs']);
    }
    I will attempt to both change the default value in config.php and comment out the code to set the value to default. However what I would really like to do is figure out why and where it is resetting in the first place and just make it stop. That way each user can set their own preference instead of being assigned a value.

  2. #2
    avadtechnologies is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    28

    Default Re: Showing more than 10 tabs in Sugar 6.0

    Setting the default amount of tabs to 20 in the config.php worked. However every time a user views or changes a page it is calling that script and setting it to 20.

    Anyone know where or how to best stop that from happening?

  3. #3
    kenlyle is offline Sugar Community Member
    Join Date
    Nov 2004
    Posts
    168

    Default Re: Showing more than 10 tabs in Sugar 6.0

    I just tried setting 20 in the config, and after logout/login, still get 7. Anyone have any more info on this?

    Thanks!

  4. #4
    lcwakeman is offline Sugar Community Member
    Join Date
    Oct 2009
    Posts
    27

    Default Re: Showing more than 10 tabs in Sugar 6.0

    I just upgraded to 6.1RC3 and I am having the sam issue but the setting in config.php is having no effect.

  5. #5
    lcwakeman is offline Sugar Community Member
    Join Date
    Oct 2009
    Posts
    27

    Default Re: Showing more than 10 tabs in Sugar 6.0

    What I did to allow more tabs:

    modules/Users/EditView.php line 346 changed to:

    $sugar_smarty->assign("MAX_TAB_OPTIONS", range(1, 20));

  6. #6
    markseddon is offline Junior Member
    Join Date
    Nov 2011
    Posts
    1

    Default Re: Showing more than 10 tabs in Sugar 6.0

    You need to set "maxTabs" in the themedefs.php file found in

    themes/Sugar5/themedef.php

    $themedef = array(
    'maxTabs' => '15', <-- add this line
    'name' => "Classic",
    'description' => "Default theme from Sugar 5",
    'version' => array(
    'regex_matches' => array('6\.*.*'),
    ),
    );

    You'll also need to update the EditView.php file as previously mentioned and then perform a Quick Repair

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2010-07-02, 05:37 AM
  2. Please Help on ZuckerReport showing on the tabs and the usage
    By ope73 in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2009-03-19, 03:48 AM
  3. Disabled tabs via Roles still showing up
    By mbaluyos in forum Help
    Replies: 1
    Last Post: 2007-04-20, 09:35 PM
  4. Replies: 0
    Last Post: 2007-04-11, 12:04 PM
  5. Group Tabs not showing up correctly.
    By clearwater in forum Help
    Replies: 6
    Last Post: 2006-12-21, 12:21 AM

Tags for this Thread

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
  •