On my homepage how do i edit the names of the shortcuts?
Sugar 5.5
On my homepage how do i edit the names of the shortcuts?
Sugar 5.5
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:
Have a look into modules/Home/menu.php to identify which language entry refers to the menu item you want to set another name.PHP Code:<?php
$mod_strings['<LANGUAGE_ENTRY>'] = '<LABEL>';
?>
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.
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![]()
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.
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
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.
Deleting the file worked. Thank you
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.
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?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks