Results 1 to 5 of 5

Thread: Changing Shortcuts of standard SugarCRM module using Module Builder!!

  1. #1
    Shailendu is offline Junior Member
    Join Date
    Jun 2007
    Posts
    1

    Default Changing Shortcuts of standard SugarCRM module using Module Builder!!

    Hi all,

    For some requirements I had in one of the projects, I was trying to add a new shortcut to "Cases" module of SugarCRM.
    By default Cases module has "Create Case" and "Cases" as the two shortcuts". I wanted to add two more shortcuts (lets say "Create Urgent Case" and "View Urgent Case" with their own saperate layout.

    The admin guide of module builder has the following in it - ( but I wasnt able to figure out how to go about doing this)

    "Besides the two standard shortcuts for new item creation and items list, Module Builder can define shortcuts for
    any module/view available on the system (native or added via Module Loader)"

    If anyone know how the above can be done, please let me know....

    Thanks a lot for your help in advance

    Cheers,
    Shailendu

  2. #2
    tinhcrm is offline Junior Member
    Join Date
    Sep 2008
    Posts
    1

    Thumbs up Re: Changing Shortcuts of standard SugarCRM module using Module Builder!!

    Hi you,

    Menu shortcuts for modules are easy to implement.. There is a ./modules/MODULE_NAME/Menu.php in
    all applicable modules. Shorcuts are generated via:
    $module_menu[]=Array("URLLINK", "SHORTCUTTEXT", "IMAGEFILENAME");

    • URLLINK - the link that the shortcut points to
    • SHORTCUTTEXT - the text that displays in the menu
    • IMAGEFILENAME - the filename in the themes image directory

    Note: A .gif extension is required for the image file and assumed in the definition


    Good luck to you.

    TinhNguyen

  3. #3
    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: Changing Shortcuts of standard SugarCRM module using Module Builder!!

    Hi Shailendu

    You can create the file custom/Extension/modules/<ModuleName>/Ext/Menus/menu.ext.php
    Add into this file something like that:

    PHP Code:
    global $module_menu;
    if(
    ACLController::checkAccess('Accounts''list'true)) {
        
    $module_menu[]=Array("index.php?module=Accounts&action=<ViewForAccount1>"$mod_strings['LBL_LABEL_FOR_VIEW_FOR_ACCOUNT1'], "");
    }
    if(
    ACLController::checkAccess('Accounts''list'true)) {
        
    $module_menu[]=Array("index.php?module=Accounts&action=<ViewForAccount2>"$mod_strings['LBL_LABEL_FOR_VIEW_FOR_ACCOUNT2'], "");

    Modify accordingly to your needs.
    Go to Admin -> Repair -> Rebuild Extension

    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.

  4. #4
    cecere is offline Junior Member
    Join Date
    Nov 2008
    Posts
    1

    Default Re: Changing Shortcuts of standard SugarCRM module using Module Builder!!

    I did this for the calendar module, but it's not picking the string from $mod_strings ...

    My code in custom/modules/calendar/ext/menus is
    <?php

    global $mod_strings, $app_strings, $sugar_config, $module_menu ;
    if(ACLController::checkAccess('Opportunities','edi t',true)){
    $module_menu[]= Array("index.php?module=Opportunities&action=EditV iew&return_module=Opportunities&return_action=Deta ilView", $mod_strings['LNK_NEW_OPPORTUNITY'],"CreateOpportunities");
    }

    ?>

    I copied this from another shortcuts menu that has the shortcut to New Opportunity...

    Can you help me?
    Thanks

  5. #5
    kohinoor is offline Junior Member
    Join Date
    Mar 2010
    Posts
    2

    Default Re: Changing Shortcuts of standard SugarCRM module using Module Builder!!

    Hi,
    I am trying to show the shortcuts available in the campaigns module under the contacts tab. Is this possible at all? Please let me know . Thanks in advance.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Inbound Email AutoReply Cancelled
    By jstevensr in forum Help
    Replies: 3
    Last Post: 2006-12-19, 12:43 PM
  2. Replies: 3
    Last Post: 2006-11-06, 03:41 AM
  3. Merge Contacts show sql error
    By hheckner in forum General Discussion
    Replies: 5
    Last Post: 2006-10-04, 01:57 PM
  4. Module Builder - Error
    By chikaysci in forum Help
    Replies: 0
    Last Post: 2006-09-29, 06:32 AM
  5. Module Builder?
    By elvispresley99 in forum Help
    Replies: 0
    Last Post: 2006-09-24, 06:10 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
  •