Results 1 to 5 of 5

Thread: Shortcut Menu Question

  1. #1
    bcunningham90 is offline Senior Member
    Join Date
    Jun 2010
    Location
    Phoeinx, AZ
    Posts
    37

    Default Shortcut Menu Question

    I have been trying to figure out how to modify the Shortcut Menu on the home page and I am having a hard time understanding why I am getting the results I am. I am hoping someone can explain what I am missing.

    I fully understand that modifying the modules/home/menu.php is not upgrade safe. For now I am testing with this file and will move to custom/modules/Home/Ext/Menu/ if I can figure this out. But as of yet, any testing in the custom/ dir has not produced any results.

    I remarked several lines from the menu.php to remove some of the existing shortcut menu items, this seemed to work fine.

    I am now trying to add a couple modules to the shortcut menu using the following code example:

    if(ACLController::checkAccess('Contacts', 'list', true))$module_menu[] = Array("index.php?module=Contacts&action=index&retu rn_module=Contacts&return_action=DetailView", $mod_strings['LNK_CONTACT_LIST'],"Contacts", 'Contacts');

    This shows a box and the associated icon, but no text?? I have repaired extensions via admin but still nothing?

    Am I missing something??

    Thanks,

    Brian

  2. #2
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Shortcut Menu Question

    Hi,

    You should check whether LNK_CONTACT_LIST exists in language file under modules/Home or custom/modules/Home?

    If no, add the one!

    If yes, check the same in cache/modules/Home. If it doesn't exist there, please remove the files from cache folder. And then reload the page.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    bcunningham90 is offline Senior Member
    Join Date
    Jun 2010
    Location
    Phoeinx, AZ
    Posts
    37

    Default Re: Shortcut Menu Question

    Beautiful! Thank you David.. I am obviously new to PHP as well.. But that worked perfect.. Now I will try to do the same in custom/modules/Home.... and know to check the language file..

    Thanks again!

    Brian

  4. #4
    justins is offline Junior Member
    Join Date
    Jul 2010
    Posts
    4

    Default Re: Shortcut Menu Question

    This great response, i have tackled several issues like those ones at LosAngeles web design but i believe David illustrated the best option for a person not well conversant with PHP, if you may need more complex solutions on how to go about just post it for my review.

  5. #5
    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: Shortcut Menu Question

    Quote Originally Posted by bcunningham90 View Post
    I have been trying to figure out how to modify the Shortcut Menu on the home page and I am having a hard time understanding why I am getting the results I am. I am hoping someone can explain what I am missing.

    I fully understand that modifying the modules/home/menu.php is not upgrade safe. For now I am testing with this file and will move to custom/modules/Home/Ext/Menu/ if I can figure this out. But as of yet, any testing in the custom/ dir has not produced any results.

    I remarked several lines from the menu.php to remove some of the existing shortcut menu items, this seemed to work fine.

    I am now trying to add a couple modules to the shortcut menu using the following code example:

    if(ACLController::checkAccess('Contacts', 'list', true))$module_menu[] = Array("index.php?module=Contacts&action=index&retu rn_module=Contacts&return_action=DetailView", $mod_strings['LNK_CONTACT_LIST'],"Contacts", 'Contacts');

    This shows a box and the associated icon, but no text?? I have repaired extensions via admin but still nothing?

    Am I missing something??

    Thanks,

    Brian
    If you want to remove shortcut menus so you need to create an extended menus for Home:
    custom/Extension/modules/Home/Ext/Menus/somescript.php and unset the entries you want;
    If you want to rename the label of some entries so you have to create an extended language:
    custom/Extension/modules/Home/Ext/Language/en_us.somescript.php

    Remember to 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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Removing whole shortcut menu from module
    By ishi in forum Developer Help
    Replies: 3
    Last Post: 2010-10-02, 06:42 PM
  2. How to Add informations on Left Menu (shortcut menu)
    By kinshibuya in forum Developer Help
    Replies: 1
    Last Post: 2010-06-02, 07:19 PM
  3. Shortcut Menu Error
    By Blissinmycoffee in forum Help
    Replies: 0
    Last Post: 2010-01-26, 07:51 PM
  4. Add Module with no Tab to Shortcut menu
    By mikesolomon in forum Developer Help
    Replies: 16
    Last Post: 2009-09-10, 12:36 AM
  5. Shortcut menu gone! How do I get it back?
    By jim.thornton in forum Developer Help
    Replies: 0
    Last Post: 2009-03-27, 05:34 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
  •