Results 1 to 5 of 5

Thread: how to Remove Shortcuts in Sugar CRM

  1. #1
    prasannagowri is offline Senior Member
    Join Date
    Apr 2009
    Posts
    52

    Default how to Remove Shortcuts in Sugar CRM

    hello,
    i am new to sugar and i have an issue with the "shortcuts"
    i want to remove short cuts from top left in a particular module.
    can any one guide me to achieve it.
    thanks in advance

  2. #2
    dlorenzetti's Avatar
    dlorenzetti is offline Sugar Community Member
    Join Date
    Jan 2008
    Location
    São Paulo, Brasil
    Posts
    189

    Default Re: how to Remove Shortcuts in Sugar CRM

    Hello,

    For remove the shortcuts you can create the file:

    custom/modules/[YOUR_MODULE]/Ext/Menus/menu.ext.php

    and write that:

    PHP Code:
    foreach($module_menu as $key => $menus_defs){
        if(
    $menus_defs[2] == 'Import'){
            unset(
    $module_menu[$key]);
        }

    In this case it will remove the "Import" from shortcut. If you want remove all the options in the shortcut you can do something like that:

    PHP Code:
    $module_menu = array(); 
    Best Regards,
    Diego
    Diego Lorenzetti
    Lampada Global Services - Open Source Solutions
    Phone: +55 11 3237-3110
    Email: equipe@lampadaglobal.com
    Site: www.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.

  3. #3
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: how to Remove Shortcuts in Sugar CRM

    Create Menu.ext.php file with following code in custom/modules/<Module Name>/Ext/Menus

    Code:
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 
    
    $module_menu = array("");
    ?>

  4. #4
    jgyc430 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    19

    Smile Re: how to Remove Shortcuts in Sugar CRM

    Quote Originally Posted by crmsiva View Post
    Create Menu.ext.php file with following code in custom/modules/<Module Name>/Ext/Menus

    Code:
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 
    
    $module_menu = array("");
    ?>
    Hi,

    I have added this code and created menu.ext.php in the Menus(also created). I did a Quick Repair and Rebuild. I even logout and login again. But i still see the shortcut menu.

    Sorry i am also new to Sugar. Pls help.

    Thanks.

  5. #5
    jgyc430 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    19

    Default Re: how to Remove Shortcuts in Sugar CRM

    Oops, i got it already.

    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remove shortcuts
    By esplgopal in forum Developer Help
    Replies: 3
    Last Post: 2009-02-25, 03:22 PM
  2. Remove 5.0 shortcuts
    By kheald in forum Developer Help
    Replies: 1
    Last Post: 2008-01-28, 08:44 PM
  3. [Sugar Tip] Managing shortcuts in "My Portal"
    By george_bbch in forum General Discussion
    Replies: 0
    Last Post: 2006-05-15, 01:27 PM
  4. Spawn popup window from Sugar Shortcuts
    By RemSoft in forum Developer Help
    Replies: 0
    Last Post: 2006-01-31, 03:38 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
  •