Plugin that adds options to the admin menu
Added by Dmitry Voronov almost 14 years ago
Hello!
I want to add some features to the admin menu.
The menu itself is statically created via Redmine.rb module:
Redmine::MenuManager.map :admin_menu do |menu| menu.push :projects, {:controller => 'admin', :action => 'projects'}, :caption => :label_project_plural menu.push :users, {:controller => 'users'}, :caption => :label_user_plural menu.push :groups, {:controller => 'groups'}, :caption => :label_group_plural menu.push :roles, {:controller => 'roles'}, :caption => :label_role_and_permissions menu.push :trackers, {:controller => 'trackers'}, :caption => :label_tracker_plural menu.push :issue_statuses, {:controller => 'issue_statuses'}, :caption => :label_issue_status_plural, :html => {:class => 'issue_statuses'} menu.push :workflows, {:controller => 'workflows', :action => 'edit'}, :caption => :label_workflow menu.push :custom_fields, {:controller => 'custom_fields'}, :caption => :label_custom_field_plural, :html => {:class => 'custom_fields'} menu.push :enumerations, {:controller => 'enumerations'} menu.push :settings, {:controller => 'settings'} menu.push :ldap_authentication, {:controller => 'ldap_auth_sources', :action => 'index'}, :html => {:class => 'server_authentication'} menu.push :plugins, {:controller => 'admin', :action => 'plugins'}, :last => true menu.push :info, {:controller => 'admin', :action => 'info'}, :caption => :label_information_plural, :last => true end
Could You recommend me the way I can extend it in my plugin?
Thanks in advance,
--
Dmitry
Replies (2)
RE: Plugin that adds options to the admin menu - Added by Marco Gutsche almost 14 years ago
Have you tried this one: http://www.redmine.org/wiki/redmine/Plugin_Tutorial#Extending-the-application-menu?
....... There are five menus that you can extend: * :top_menu - the top left menu * :account_menu - the top right menu with sign in/sign out links * :application_menu - the main menu displayed when the user is not inside a project * :project_menu - the main menu displayed when the user is inside a project * :admin_menu - the menu displayed on the Administration page (can only insert after Settings, before Plugins) .......
RE: Plugin that adds options to the admin menu - Added by Dmitry Voronov almost 14 years ago
Thanks, Marco! That's all I wanted to know.
--
Dmitry