Project

General

Profile

Actions

Feature #631

closed

Add Plugin Support for extending the top menu

Added by Eric Davis almost 17 years ago. Updated almost 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
2008-02-12
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Right now plugins can only extend the Project menu ("main-menu"). This is kinda awkward for plugins that work across projects (see my Timesheet plugin for an example).

What needs to be done to be able to extend the "top-menu"? Can we just build the "top-menu" using Redmine::MenuManager and hook into it with the Redmine::Plugin.menu method?

Actions #1

Updated by Jean-Philippe Lang almost 17 years ago

Done in r1137. You can now use this in your plugins:

Redmine::MenuManager.map :top_menu do |menu|
  menu.push ...
end
Two other menus can be extended as well:
  • account_menu: the one in the upper-right corner (with login/logout links)
  • application_menu: same place as the project menu but rendered when outside of a project (this menu is empty by default)

You can also have a look at lib/redmine.rb

Actions #2

Updated by Jean-Philippe Lang almost 17 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF