Results 1 to 3 of 3

Thread: How can i remove the module "Home" ?

  1. #1
    rajesh22 is offline Senior Member
    Join Date
    Sep 2008
    Posts
    31

    Question How can i remove the module "Home" ?

    Hi,

    I am currently creating new modules in sugarCRM.
    I hided the unwanted tabs through the Configure Tab.
    But not able to remove the home tab.
    Can anyone say how to remove the home tab and how can i use my custome module as home?


    Thanks,

    Rajesh

  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: How can i remove the module "Home" ?

    Hi Rajesh

    The solution is not upgrade safe.
    You need to edit the file modules/Users/Authenticate.php

    Modify the code

    PHP Code:
        $GLOBALS['module'] = !empty($_REQUEST['login_module']) ? '?module='.$_REQUEST['login_module'] : '?module=Home';
           
    $GLOBALS['action'] = !empty($_REQUEST['login_action']) ? '&action='.$_REQUEST['login_action'] : '&action=index'
    By that one

    PHP Code:
        $GLOBALS['module'] = !empty($_REQUEST['login_module']) ? '?module='.$_REQUEST['login_module'] : '?module=YourCustomModule';
          
    $GLOBALS['action'] = !empty($_REQUEST['login_action']) ? '&action='.$_REQUEST['login_action'] : '&action=index'
    Remember to replace the "YourCustomModule" by the name of module you want to set to Home.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    rajesh22 is offline Senior Member
    Join Date
    Sep 2008
    Posts
    31

    Exclamation Re: How can i remove the module "Home" ?

    Hi Andopes,


    The code you given is not worthy. why it's not working?
    This is the code i added. But no change.
    HTML Code:
    $GLOBALS['module'] = !empty($_REQUEST['login_module']) ? '?module='.$_REQUEST['login_module'] : '?module=Customers';     
    $GLOBALS['action'] = !empty($_REQUEST['login_action']) ? '&action='.$_REQUEST['login_action'] : '&action=index';
    Still i cant hide the home module and i cant use my module as home.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Enabling import on a custom module in Sugar 5.0
    By clint in forum Developer Help
    Replies: 29
    Last Post: 2009-07-14, 06:09 AM
  2. Replies: 6
    Last Post: 2008-06-17, 06:32 AM
  3. Replies: 4
    Last Post: 2008-05-29, 07:52 AM
  4. Remove a module in role management
    By sugarcare in forum Developer Help
    Replies: 1
    Last Post: 2006-10-06, 03:45 PM
  5. New module, subpanels and Inbound Email
    By tomi3x in forum Developer Help
    Replies: 0
    Last Post: 2006-09-26, 10:03 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
  •