Hi,
I created a new menu entry for a custom module. I now have in the side menu that you see when the user is on the ListView of a module the following entries:
I would like to remove the default ‘CREATE XX’ entry and replace it by my new custom entry. How can I do that? I figured out how to add new entries, which appear in the order of definition in the Menu file but I couldn’t figure out how to suppress or overwrite default menu entries.
Does someone know?
I use SuiteCRM 7.11.4 (Sugar 6.5.25, Build 344).
Hi,
All you need to do some php code at this location.
custom/Extension/modules/modules_name/Ext/Menus/outright_override_menu.php.
Create this file and put some code to override your default Menus.
I use this file to create my new menu entry. It didn’t exist before so I created it. It looks like this at the moment - it only contains the definition of my new entry:
$module_menu[] = Array(
//URL
"index.php?module=XXXXX&action=YYYYYY",
//Label String
$mod_strings[''] = 'Custom Option',
'List_Maps',
//Module Name
'CustomXXXX'
);
How do I remove the pre-existing "CREATE " and "VIEW " option of the module? How do I remove the default menu items?
There are 2 ways to do this.
- initialise whole array again , ie $module_menu = array();
- Use unset to remove Pre-Existing Menus.