Hi to all,
I'm working with Sugar CE 5.5.0,
I hope somebody help me.
How can I remove a shortcut entry from shortcut menu in home page?
I'd like to remove 'report bug' entry, what should I do?
Thanks in advance,
Martina
Hi to all,
I'm working with Sugar CE 5.5.0,
I hope somebody help me.
How can I remove a shortcut entry from shortcut menu in home page?
I'd like to remove 'report bug' entry, what should I do?
Thanks in advance,
Martina
Hi Martina
You need to create an extended menu for Home module, to remove such link from side menu.
/custom/Extension/modules/Home/Ext/Menus/menu.ext.php
Obviously create the folders and file if don´t exist.
Then go to Admin -> Repair -> Rebuild ExtensionsPHP Code:<?php
$useless_entries = array('CreateBugs');
foreach($module_menu as $item_id => $item_defs) {
if(in_array($item_defs[2], $useless_entries)) {
unset($module_menu[$item_id]);
}
}
?>
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.
Hi Andopes,
Thank you so much for reply!!!!
I solved the problem,
I've modified file -> modules/Home/Menu.php
I commented the lines of code relating to the links do not display.
It's work!
Thanks,
Martina
Hi Martina
Remember that this approach is not upgrade safe, so after upgrading your system to a new version you may loose such customization.
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.
Hi Adnopes,
thanks for the suggestion.
I will follow your advice, hoping in time to avoid certain mistakes.
Cheers
I got this to work properly to remove the 'Create' button for my module.
How do I di the same thing to remove the quick-create form that is right under it?
You need to create the script custom/modules/<ModuleName>/views/view.sidequickcreate.php containing this code:
CheersPHP Code:<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.sidequickcreate.php');
class <ModuleName>ViewSidequickcreate extends ViewSidequickcreate {
function display() {
return '';
}
}
?>
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks