0

How can i add many tab like settings function in projects menu bar when i created new redmine plugin. It have many tab: 'Information, Modules, Members, Version,

1 Answers1

0

just add two line in init.rb

 menu :project_menu, :polls1, { :controller => 'polls', :action => 'index' }, :caption => 'Polls1',:last => true,  :param => :project_id
 menu :project_menu, :polls2, { :controller => 'polls', :action => 'index' }, :caption => 'Polls2',:last => true,  :param => :project_id

notice that the second param (:polls1 in line 1 and :polls2 in line 2) can not be the same , or it will raise an error

leo108
  • 817
  • 5
  • 12
  • Hi leo108,this code to add new plugin to project menu bar, but i want to add many tabs in each project function. – user3227206 Jan 24 '14 at 04:34