View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
18654Feature requestsMenu systempublic2023-08-16 18:04
Reporterbismark Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Summary18654: Make all menus changeable via plugin events (or a global registry)
Description

there are events like beforeAdminMenuRender and beforeToolsMenuRender
remove database menu entries, and instead, create arrays and let them change via plugin events

TagsNo tags attached.
Bug heat2
Story point estimate0
Users affected %0

Relationships

related to 12174 new A global beforeMenuRender 

Users monitoring this issue

There are no users monitoring this issue.

Activities

ollehar

ollehar

2023-08-16 18:02

administrator   ~76627

Last edited: 2023-08-16 18:02

My current preference is instead to use a global registry for menu items, which can be populated by plugins in the init() method, similar to what is already possible for form inputs.

This way we don't have to add a new event for each new menu we want to support.

See LimeSurvey\Libraries\FormExtension\FormExtensionService

Issue History

Date Modified Username Field Change
2023-02-25 16:47 bismark New Issue
2023-08-16 18:01 ollehar Summary make all menus changeable via plugin events => Make all menus changeable via plugin events
2023-08-16 18:02 ollehar Note Added: 76627
2023-08-16 18:02 ollehar Bug heat 0 => 2
2023-08-16 18:02 ollehar Summary Make all menus changeable via plugin events => Make all menus changeable via plugin events (or a global registry)
2023-08-16 18:02 ollehar Note Edited: 76627
2023-08-16 18:04 ollehar Relationship added related to 12174