$g_main_menu_custom_options

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
duwil
Posts: 46
Joined: 08 Jul 2008, 12:14

$g_main_menu_custom_options

Post 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

---
duwil
Posts: 46
Joined: 08 Jul 2008, 12:14

SOLVED: $g_main_menu_custom_options

Post 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 :?

---
duwil
Posts: 46
Joined: 08 Jul 2008, 12:14

Re: SOLVED: $g_main_menu_custom_options

Post 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?
tkaufmann
Posts: 5
Joined: 26 Mar 2010, 08:00

Re: $g_main_menu_custom_options

Post 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
duwil
Posts: 46
Joined: 08 Jul 2008, 12:14

Re: $g_main_menu_custom_options

Post by duwil »

I removed that config option from "MANAGE - MANAGE CONFIGURATION - CONFIGURATION REPORT" and then my line in config_inc.php started to work.
Post Reply