View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015741||mantisbt||customization||public||2013-04-10 07:48||2013-04-21 04:49|
|Summary||0015741: my_view_page.php cannot be customized|
Some of our mantis users want to have more information on my_view_page.php, e.g the name of the assigned user. (screenshot shows this - in german)
There is no way to customize the my_view_inc.page that does the output.
I've developed a small patch that tries to load a custom_my_view_inc.php if it exists. If not, it loads my_view_inc.php .
|Tags||No tags attached.|
Thanks for your contribution.
I agree that we should have some more options to customize the "My View" page.
IMO the way you want it is not the way it should be in product.
You can add your own "My View" page by setting $g_main_menu_custom_options.
What we ware missing at the moment is a configuration option to hide the original "My View" page.
Let me know your thoughts.
OK, that's what I didn't knew; using the $g_main_menu_custom_options sounds good to me.
Some things are:
But I have another idea:
Maybe it would be a possible way to add an chained event hook in html_api.php just before the $t_menu_options array implodes the menu (row ~862).
Then a plugin could analyze the menu options and do many things like sorting, adding/deleting, renaming of menu options.
What do you think of this?
I wonder how a plugin could be able to analyze menu options which are complete unknown to the plugin.
Are you aware of the existing events EVENT_MENU_MAIN_FRONT and EVENT_MENU_MAIN ?
I wonder if I have correctly understood the meaning of plugins: isn't it allowed to create dependencies to the current system?
Of course a plugin knows nothing about the menu, that is build in an environment depending on config, user rights, etc.
I am aware of the existing events EVENT_MENU_MAIN_FRONT and EVENT_MENU_MAIN, but both are EVENT_TYPE_DEFAULT. So I cannot use them to add a menu option.
By writing this, I realize that building the menu is quite complex...
Adding a menu entry using a plugin and the event EVENT_MENU_MAIN is quite easy.
I will close this issue as
Do you agree?
Please use the forums, the mantisbt-help mailing list or IRC to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).
Yes, it's ok. Please close it.
|2013-04-10 07:48||HeikoSL||New Issue|
|2013-04-10 07:48||HeikoSL||File Added: MantisBT_AssignedTo_on_my_view_page.png|
|2013-04-10 08:40||atrol||Note Added: 0036563|
|2013-04-10 08:40||atrol||Status||new => feedback|
|2013-04-10 10:26||HeikoSL||Note Added: 0036564|
|2013-04-10 10:26||HeikoSL||Status||feedback => new|
|2013-04-11 08:26||atrol||Note Added: 0036572|
|2013-04-11 08:26||atrol||Status||new => feedback|
|2013-04-11 11:33||HeikoSL||Note Added: 0036574|
|2013-04-11 11:33||HeikoSL||Status||feedback => new|
|2013-04-11 11:53||atrol||Note Added: 0036575|
|2013-04-11 11:53||atrol||Status||new => feedback|
|2013-04-11 11:56||HeikoSL||Note Added: 0036576|
|2013-04-11 11:56||HeikoSL||Status||feedback => new|
|2013-04-11 17:50||atrol||Relationship added||duplicate of 0007840|
|2013-04-11 17:50||atrol||Status||new => resolved|
|2013-04-11 17:50||atrol||Resolution||open => duplicate|
|2013-04-11 17:50||atrol||Assigned To||=> atrol|
|2013-04-21 04:49||atrol||Status||resolved => closed|