Page 1 of 1

Remove drop-down menu

Posted: 12 Dec 2023, 21:24
by nalzate
Hello, what is the code to remove the drop down menu?

Re: Remove drop-down menu

Posted: 12 Dec 2023, 21:31
by atrol
Which drop down menu?

Re: Remove drop-down menu

Posted: 12 Dec 2023, 21:33
by nalzate
the drop-down menu next to the user's name

Re: Remove drop-down menu

Posted: 12 Dec 2023, 21:39
by atrol
Do you mean the project selection or the one for the account settings?

Re: Remove drop-down menu

Posted: 12 Dec 2023, 21:39
by nalzate
the project selection

Re: Remove drop-down menu

Posted: 12 Dec 2023, 21:58
by atrol
Why do you want to remove it?
It's automatically removed if a user has just access to one single project.

Re: Remove drop-down menu

Posted: 12 Dec 2023, 22:08
by nalzate
I am changing a program from an old version of mantis to a new version. I have administrator access and in the old version the drop down menu is disabled and I don't know what is the code to disable it in the new version as well.

I need your help, please, thank you.

Re: Remove drop-down menu

Posted: 13 Dec 2023, 08:18
by cas
You can simply set "$g_show_project_menu_bar" to "OFF" in config/config_inc.php.

Re: Remove drop-down menu

Posted: 13 Dec 2023, 13:35
by nalzate
I already had it in the code, what other option is there?

Re: Remove drop-down menu

Posted: 13 Dec 2023, 14:19
by cas
The only way to really suppress that bit, is by altering core/layout_ap.php :mrgreen:
you need to comment out line 438 to read

Code: Select all

//		layout_navbar_projects_menu();

Re: Remove drop-down menu

Posted: 13 Dec 2023, 14:40
by nalzate
It worked for me! thank you very much for your help! :D :D