[Plugin/Hook] Reihenfolge der Menü Items ändern

Deutschsprachiges Forum für Diskussionen und Fragen zu MantisBT

Moderators: Developer, Contributor

Post Reply
econsor_ag
Posts: 31
Joined: 18 Jun 2019, 08:35

[Plugin/Hook] Reihenfolge der Menü Items ändern

Post by econsor_ag »

Hallo Zusammen,

ich habe mehrere Plug-Ins die neue Menü Punkte links hinzufügen, wie kann ich hierfür aber die Reihenfolge setzen?

'EVENT_MENU_MAIN' => 'addMenu'
atrol
Site Admin
Posts: 8353
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: [Plugin/Hook] Reihenfolge der Menü Items ändern

Post by atrol »

Habe es nicht probiert, aber mit EVENT_MENU_MAIN_FILTER könnte das machbar sein.
https://mantisbt.org/docs/master/en-US/ ... utput.menu
This event gives plugins the opportunity to modify the complete main menu before it is output (for example re-order items, add items in the middle, remove built-in items, change icons of built-in items).
Please use Search before posting and read the Manual
econsor_ag
Posts: 31
Joined: 18 Jun 2019, 08:35

Re: [Plugin/Hook] Reihenfolge der Menü Items ändern

Post by econsor_ag »

atrol wrote: 26 Mar 2020, 09:14 Habe es nicht probiert, aber mit EVENT_MENU_MAIN_FILTER könnte das machbar sein.
https://mantisbt.org/docs/master/en-US/ ... utput.menu
This event gives plugins the opportunity to modify the complete main menu before it is output (for example re-order items, add items in the middle, remove built-in items, change icons of built-in items).
Ich hab mir das angeschaut aber wie benutzte ich das im Code?
Post Reply