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 |
Reporter | HeikoSL | Assigned To | atrol | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 1.2.14 | ||||
Summary | 0015741: my_view_page.php cannot be customized | ||||
Description | 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. | ||||
Additional Information | 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. | ||||
Attached Files | |||||
duplicate of | 0007840 | acknowledged | Customizable 'my view' page |
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. https://github.com/mantisbt-plugins/mantweet/blob/master/ManTweet.php#L153 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. |
|