Results 1 to 4 of 4

Thread: Adding shortcuts globally to all modules

  1. #1
    wvmilo is offline Member
    Join Date
    Aug 2009
    Posts
    7

    Default Adding shortcuts globally to all modules

    I've successfully been able to append a shortcut to every module using
    /custom/Extension/application/Ext/Menus/ that I read about here, it adds the link to the end of the shortcuts.

    What I'm trying to find out is if there is anyway to have the global shortcuts show up at the beginning of the list instead of the end???

  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: Adding shortcuts globally to all modules

    There is no global menus.
    You have to specify the menu item for all modules in your system.

    Regards
    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
    wvmilo is offline Member
    Join Date
    Aug 2009
    Posts
    7

    Default Re: Adding shortcuts globally to all modules

    But adding a custom file under /custom/Extension/application/Ext/Menus/ did add a shortcut to every module.

  4. #4
    lepek is offline Member
    Join Date
    Dec 2009
    Posts
    8

    Default Re: Adding shortcuts globally to all modules

    In a file like: /custom/Extension/application/Ext/Menus/menu.ext.php
    write a code like this:

    Code:
    <?php
    global $module_menu;
    
    array_unshift($module_menu, array(URL, LABEL, ICON, ''));
    
    ?>
    If the file does not exist you can created.
    The array_unshift will add the entry at the start of the array and the shortcut will be displayed as the first one
    Last edited by lepek; 2010-07-16 at 07:37 PM. Reason: mispelling

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SugarCRM Default Modules - Shortcuts
    By matt.stannard in forum Help
    Replies: 1
    Last Post: 2010-04-30, 11:30 AM
  2. Minimize shortcuts on all modules by default?
    By rampar in forum Developer Help
    Replies: 2
    Last Post: 2009-07-17, 05:00 PM
  3. Shortcuts and User Modules
    By cygnusceo in forum Developer Help
    Replies: 1
    Last Post: 2009-01-06, 12:34 PM
  4. Adding an info box after shortcuts
    By gili in forum Developer Help
    Replies: 2
    Last Post: 2005-11-29, 08:12 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
  •