Page 1 of 1

$g_main_menu_custom_options

Posted: 22 Sep 2008, 17:03
by duwil
I know I can customize menu via "$g_main_menu_custom_options", I added this line in my config_inc.php:

$g_main_menu_custom_options = array( array( "My_Link", MANAGER, 'my_link.php' ), array( "My_Link2", ADMINISTRATOR, 'my_link2.php' ) );

but it's not working; is there something else I must check in order to get it working?

mantis version 1.1.2

---

SOLVED: $g_main_menu_custom_options

Posted: 06 Feb 2009, 15:55
by duwil
I finally understood what the problem was. I installed a couple of plugins so the line I used in my config_inc.php was correct but was ignored because there was a configuration injected directly in DB by the plugin, I checked in MANAGE - MANAGE CONFIGURATION - CONFIGURATION REPORT and there I found the "main_menu_custom_options" entry. Maybe it should be better to have just one way to set options :?

---

Re: SOLVED: $g_main_menu_custom_options

Posted: 11 Feb 2009, 16:22
by duwil
Is it possible to set this option from the GUI, I mean... how can I set nested arrays there, what is the right syntax?

Re: $g_main_menu_custom_options

Posted: 26 Mar 2010, 08:02
by tkaufmann
For me the same Problem, what did you do, do solve this Problem? I can't add a custom Link to the Menu.

Please help me.

Thanks

Re: $g_main_menu_custom_options

Posted: 07 Apr 2010, 13:13
by duwil
I removed that config option from "MANAGE - MANAGE CONFIGURATION - CONFIGURATION REPORT" and then my line in config_inc.php started to work.