Results 1 to 7 of 7

Thread: Remove shortcut entries

  1. #1
    muscariello is offline Senior Member
    Join Date
    Jul 2009
    Location
    Napoli
    Posts
    45

    Default Remove shortcut entries

    Hi to all,
    I'm working with Sugar CE 5.5.0,
    I hope somebody help me.
    How can I remove a shortcut entry from shortcut menu in home page?
    I'd like to remove 'report bug' entry, what should I do?

    Thanks in advance,
    Martina

  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: Remove shortcut entries

    Hi Martina

    You need to create an extended menu for Home module, to remove such link from side menu.

    /custom/Extension/modules/Home/Ext/Menus/menu.ext.php
    Obviously create the folders and file if don´t exist.

    PHP Code:
    <?php
    $useless_entries 
    = array('CreateBugs');

    foreach(
    $module_menu as $item_id => $item_defs) {
            if(
    in_array($item_defs[2], $useless_entries)) {
                    unset(
    $module_menu[$item_id]);
            }
    }
    ?>
    Then go to Admin -> Repair -> Rebuild Extensions

    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
    muscariello is offline Senior Member
    Join Date
    Jul 2009
    Location
    Napoli
    Posts
    45

    Default Re: Remove shortcut entries

    Hi Andopes,
    Thank you so much for reply!!!!
    I solved the problem,
    I've modified file -> modules/Home/Menu.php
    I commented the lines of code relating to the links do not display.
    It's work!
    Thanks,
    Martina

  4. #4
    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: Remove shortcut entries

    Hi Martina

    Remember that this approach is not upgrade safe, so after upgrading your system to a new version you may loose such customization.

    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.

  5. #5
    muscariello is offline Senior Member
    Join Date
    Jul 2009
    Location
    Napoli
    Posts
    45

    Default Re: Remove shortcut entries

    Hi Adnopes,
    thanks for the suggestion.
    I will follow your advice, hoping in time to avoid certain mistakes.

    Cheers

  6. #6
    Kpoggensee is offline Junior Member
    Join Date
    Oct 2009
    Posts
    3

    Default Re: Remove shortcut entries

    I got this to work properly to remove the 'Create' button for my module.

    How do I di the same thing to remove the quick-create form that is right under it?

  7. #7
    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: Remove shortcut entries

    You need to create the script custom/modules/<ModuleName>/views/view.sidequickcreate.php containing this code:

    PHP Code:
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

    require_once(
    'include/MVC/View/views/view.sidequickcreate.php');

    class <
    ModuleName>ViewSidequickcreate extends ViewSidequickcreate {
        function 
    display() {
            return 
    '';
        }
    }
    ?>
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Delete shortcut Entries
    By TheEyes in forum Developer Help
    Replies: 3
    Last Post: 2010-01-13, 05:30 PM
  2. How to remove buttons from shortcut in Calendar ?
    By dekleinemedia in forum Help
    Replies: 2
    Last Post: 2009-08-04, 06:44 AM
  3. Remove Shortcut bar & quickcreate form
    By vishwasrao in forum Developer Help
    Replies: 3
    Last Post: 2009-02-18, 05:52 PM
  4. Remove Shortcut sub-panel
    By paras in forum General Discussion
    Replies: 2
    Last Post: 2008-02-18, 04:36 AM
  5. Remove Shortcut Windows
    By mcs/om in forum Help
    Replies: 2
    Last Post: 2006-04-26, 12:41 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
  •