Results 1 to 6 of 6

Thread: Hide Home Tab

  1. #1
    gerald29 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    34

    Default Hide Home Tab

    Hello,

    I am trying to hide the Home tab from some users (or all users). I have tried hiding the tab globaly and removing it from a user, neither of which works.

    Any suggestions?

    Regards,
    Gerald S.
    SugarCRM 5.1.0c
    Windows Server 2003 R2
    XAMPP Installation
    Apache / MySQL

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

    Default Re: Hide Home Tab

    Hello Gerald,

    I believe this is because the Sugar config.php file has the 'default_module' directive set to 'Home.' Try editing your config.php file to change 'default_module' to some other module name, then remove the tab again.

    How to change your config.php file in an upgrade safe manner: http://www.sugarcrm.com/wiki/index.p...g_override.php
    Julian Ostrow
    Systems and Applications Engineer
    SugarCRM Inc.

  3. #3
    gerald29 is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    34

    Default Re: Hide Home Tab

    Thank you Julian,

    I made the following changes to config_override.php. However this does not let me remove the home page. Am I doing it correctly?

    /***CONFIGURATOR***/$sugar_config['lock_homepage'] = false;
    /***CONFIGURATOR***/$sugar_config['default_module'] = 'Documents';

    Regards
    Gerald
    SugarCRM 5.1.0c
    Windows Server 2003 R2
    XAMPP Installation
    Apache / MySQL

  4. #4
    tolungng is offline Junior Member
    Join Date
    Jun 2009
    Posts
    2

    Default Re: Hide Home Tab

    vi ./modules/MySettings/TabController.php

    comment out
    //$tabs['Home'] = 'Home';
    inside if (!empty($trimmed_tabs)){} logic and you should be able to hide the Home tab

    SugarCE 5.2.0f

  5. #5
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,467

    Default Re: Hide Home Tab

    Quote Originally Posted by tolungng View Post
    vi ./modules/MySettings/TabController.php

    comment out
    //$tabs['Home'] = 'Home';
    inside if (!empty($trimmed_tabs)){} logic and you should be able to hide the Home tab

    SugarCE 5.2.0f
    I tried this in 5.2.k and it had no effect

    How can I hide the Home tab from a user?
    Mike Solomon
    Development Manager
    Ivy Ltd
    www.ivy.ltd.uk]www.ivy.ltd.uk

    php version 5.2.6
    MySql 5.1.59

  6. #6
    tolungng is offline Junior Member
    Join Date
    Jun 2009
    Posts
    2

    Default Re: Hide Home Tab

    ./config.php:158:change default_module->Activities
    ./modules/Users/Authenticate.php:66:change Home->Activities
    ./modules/Users/SaveTimezone.php:51:change Home->Activities
    ./modules/MySettings/TabController.php:81:change Home->Activities

    Then Configure Tabs to remove Home. This should prevent user from accessing Home page (unless the user explicitly types index.php?module=Home in the URL).

    Tested on 5.2.0k and 5.5.0

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I am able to see only 'HOME' tab
    By rachna01 in forum Developer Help
    Replies: 3
    Last Post: 2006-05-10, 06:50 PM
  2. Customizing Home tab
    By sai in forum Customer Support
    Replies: 1
    Last Post: 2005-11-27, 09:21 PM
  3. Checkboxes under Home Tab
    By Adamcin in forum Help
    Replies: 0
    Last Post: 2005-11-16, 12:27 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
  •