View Issue Details

IDProjectCategoryView StatusLast Update
0024590mantisbtplug-inspublic2018-07-05 09:35
ReporterjamesviiAssigned Tocommunity 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status assignedResolutionopen 
Product Version2.15.0 
Target VersionFixed in Version 
Summary0024590: Add EVENT_MENU_MAIN_FILTER to allow complete customisation of main menu


This patch modifies the way the main sidebar menu is built; menu items are all assembled in an array first, which is then given the chance to be altered by plugins using a new chain filter EVENT_MENU_MAIN_FILTER.

This allows plugins to do a few things that currently isn't possible, especially to the hard-coded items (My View, View Bugs), such as re-order the items, change the icon, or remove them. It also allows plugins to insert new items anywhere in the menu (not just the start or end). Additionally, by returning an empty array, plugins can get rid of the sidebar entirely.

This is partly inspired by the way Wordpress allows plugins to alter admin menu item, and by our need to remove the My View item in certain circumstances.

TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2018-07-05 09:12 jamesvii New Issue
2018-07-05 09:35 atrol Assigned To => community
2018-07-05 09:35 atrol Status new => assigned