View Issue Details

IDProjectCategoryView StatusLast Update
0034406mantisbtcustomizationpublic2025-03-06 10:51
Reporterpaspiz85 Assigned Tocommunity  
PrioritynormalSeverityfeatureReproducibilityN/A
Status assignedResolutionopen 
Target Version2.28.0 
Summary0034406: Allow changing navbar buttons
Description

I want to customize navbar buttons by adding extra buttons using a plugin.

I need to add an event to manage these extra buttons. It could also be useful to modify existing buttons.

TagsNo tags attached.

Activities

paspiz85

paspiz85

2024-04-18 05:43

reporter   ~0068827

My proposal is https://github.com/mantisbt/mantisbt/pull/1993

paspiz85

paspiz85

2024-04-18 05:46

reporter   ~0068828

Example of usage https://github.com/paspiz85/MantisBT-NavbarButtons

dregad

dregad

2024-04-18 11:02

developer   ~0068829

PR https://github.com/mantisbt/mantisbt/pull/1993

raspopov

raspopov

2025-02-22 02:33

reporter   ~0069895

Last edited: 2025-02-22 03:59

@paspiz85 I think this functionality can be implemented without changing MantisBT code. I suggest you to consider this scenario: your plugin will check user access level, and based on that, using EVENT_LAYOUT_RESOURCES event, load proper JavaScript with injection of necessary buttons into navbar (jQuery is available by default). Selection of buttons can be done in the UI part of the plugin.

For sample you can use a built-in MantisCoreFormatting plugin (MantisCoreFormattingPlugin::resources()).

Similar to 0023210.