Page 1 of 1
Main menu Customization
Posted: 21 Jan 2016, 15:49
by Mejstro
Hello,
I have added a custom menu item by modifying config_inc.php:
Code: Select all
$g_main_menu_custom_options = array(array("MyMenuItem", ADMINISTRATOR, 'MyLink' ) );
Now I would need to force open only this link in a new window. Would it be possible? Can anyone help me?
Thanks a lot for your answer and help...
Re: Main menu Customization
Posted: 22 Jan 2016, 06:51
by atrol
I prefer to choose on my own if I want to open a link in the same tab, a new tab or a new window.
But ok, if you want it, you can get it:
http://www.w3schools.com/tags/att_a_target.asp
Re: Main menu Customization
Posted: 22 Jan 2016, 09:13
by Mejstro
Thanks a lot for your answer. I know html syntax quite a well, but I suppose some files of mantis have to be modified to add target="_blank" parameter. Unfortunatelly I am unable to find where the change must be done.
Re: Main menu Customization
Posted: 20 Mar 2018, 20:42
by Guevtron
sorry for my bad English, but I wanted to answer this question that cost me a lot to resolve and although I know it's old the publication has not been closed.
In order to help more collaborators in the future, I commented on the solution.
add the following to the code
Code: Select all
$g_main_menu_custom_options = array(array("MyMenuItem", ADMINISTRATOR, 'MyLink" target="_blank' ) );