Page 1 of 1
[SOLVED]Function print project menu bar
Posted: 24 Sep 2014, 13:40
by Nolkyz
Hello,
Who can explain to me how to override the print_project_menu_bar() function who it in html_api.php line 623 ?
Thanks.
Re: Function print project menu bar
Posted: 25 Sep 2014, 09:23
by atrol
This function is not active with default settings.
Why do you activate a function to override it in a second step?
Re: Function print project menu bar
Posted: 25 Sep 2014, 09:37
by Nolkyz
All my Colleagues want it for a better search by ctrl+f because we have many projects.
I would override it for hide it on start.
Re: Function print project menu bar
Posted: 26 Sep 2014, 06:29
by atrol
The clean way where you don't have to touch existing code is to write a plugin.
Disable again option show_project_menu_bar.
Hook to event EVENT_LAYOUT_CONTENT_BEGIN in the plugin.
Write a function that does nearly the same like print_project_menu_bar.
Re: Function print project menu bar
Posted: 26 Sep 2014, 06:35
by Nolkyz
Thanks atrol !