Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Edit Shortcut Names

  1. #1
    anicolais is offline Senior Member
    Join Date
    Nov 2009
    Posts
    99

    Default Edit Shortcut Names

    On my homepage how do i edit the names of the shortcuts?

    Sugar 5.5

  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: Edit Shortcut Names

    You need to create extended language for the Home module:
    custom/Extension/modules/Home/Ext/Language/en_us.ext.php containing the translation for the menu links you want.
    The content of the file would be something like that:

    PHP Code:
    <?php
    $mod_strings
    ['<LANGUAGE_ENTRY>'] = '<LABEL>';
    ?>
    Have a look into modules/Home/menu.php to identify which language entry refers to the menu item you want to set another name.

    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
    anicolais is offline Senior Member
    Join Date
    Nov 2009
    Posts
    99

    Default Re: Edit Shortcut Names

    All I see in the custom directory is include directory and index.html. I just installed this instance of Sugar, what do I do to get the extension and everything in there? They are there in all my other instances I've been running for a while? Confused

  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: Edit Shortcut Names

    Obviously you can create the folders and file if they don´t exist.

    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
    anicolais is offline Senior Member
    Join Date
    Nov 2009
    Posts
    99

    Default Re: Edit Shortcut Names

    Ok I am having a problem with this for some reason. I created all the directories and the following file in the custom directory:

    /custom/Extension/modules/Home/Ext/Language/en_us.ext.php
    In this file i put the following code:
    <?php
    $mod_strings['LNK_NEW_ACCOUNT'] = 'Create Content';
    ?>

    I am trying to edit the 'create account' shortcut on the homepage.
    I then clicked rebuild extensions.
    This then created a file in the custom directory with the following path:

    /custom/modules/Home/Ext/Language/en_us.lang.ext.php
    This file contains the following:
    <?php
    //WARNING: The contents of this file are auto-generated


    $mod_strings['LNK_NEW_ACCOUNT'] = 'Create Content';

    ?>

    This did not do anything though as it still say 'create account' on my homepage.

    Any suggestions on what I'm doing wrong?

    Thanks

  6. #6
    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: Edit Shortcut Names

    Try Quick Repair and Rebuild.
    If it doesn´t work so manually delete the file cache/modules/Home/language/en_us.lang.php

    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.

  7. #7
    anicolais is offline Senior Member
    Join Date
    Nov 2009
    Posts
    99

    Default Re: Edit Shortcut Names

    Deleting the file worked. Thank you

  8. #8
    jkohlbach's Avatar
    jkohlbach is offline Senior Member
    Join Date
    Apr 2010
    Location
    Brisbane, Australia
    Posts
    103

    Default Re: Edit Shortcut Names

    I'm having the same issue here except deleting the cache file or rebuilding (or both) doesn't work for me.

    When I re-visit the home page it recreates the cache file. Looks like it's still drawing grabbing the label from the [sugarbase]/modules/Home/language/en_us.lang.php file instead of [sugarbase]/custom/modules/Home/Ext/language/en_us.lang.ext.php file.

    Any suggestions?

  9. #9
    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: Edit Shortcut Names

    Quote Originally Posted by jkohlbach View Post
    I'm having the same issue here except deleting the cache file or rebuilding (or both) doesn't work for me.

    When I re-visit the home page it recreates the cache file. Looks like it's still drawing grabbing the label from the [sugarbase]/modules/Home/language/en_us.lang.php file instead of [sugarbase]/custom/modules/Home/Ext/language/en_us.lang.ext.php file.

    Any suggestions?
    It seems you are managing the language entries inside the wrong file. The correct one is:
    custom/Extension/modules/Home/Ext/Language/en_us.somescript.php

    After updating such file go to Admin -> Repair -> Rebuild Extensions.
    That will merge the entries you just defined into custom/modules/Home/Ext/Language/en_us.somescript.php.

    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.

  10. #10
    jkohlbach's Avatar
    jkohlbach is offline Senior Member
    Join Date
    Apr 2010
    Location
    Brisbane, Australia
    Posts
    103

    Default Re: Edit Shortcut Names

    I found the issue.. looks like i was saying $mod_string[' ... instead of $mod_strings['...

    After fixing that and following your suggestions it seems to work as expected
    I too had to delete the cache file manually before it would take effect though. Shouldn't this clear out after you do a repair?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to add an external shortcut
    By premapix in forum Developer Help
    Replies: 1
    Last Post: 2009-10-31, 10:27 PM
  2. Edit Tab Names Kills Install
    By ambaxter in forum General Discussion
    Replies: 0
    Last Post: 2007-07-13, 08:08 PM
  3. Replies: 5
    Last Post: 2007-05-21, 12:59 PM
  4. Shortcut to executable
    By Proware in forum Help
    Replies: 0
    Last Post: 2006-06-01, 03:26 AM
  5. Users' can edit their own account names!
    By stevec in forum Feature Requests
    Replies: 0
    Last Post: 2006-05-02, 09:34 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
  •