Project

General

Profile

Actions

Patch #5254

closed

How can I add a MenuItem in Redmine

Added by sean chan about 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-04-07
Due date:
% Done:

0%

Estimated time:

Description

I am using Redmine in order to offer a quickview of how many people are online last 2 hours

I just want to add a menuItem to the project_menu,which I foundin "lib\redmine.rb",
first:
I added permissions like "
map.project_module :users do|map|
map.permission :view_users,{:users => [:index , :find_lasts ]}
"
second:
I pushed it into project_menu like "
menu.push :users,{ :controller => "users" , :action =>"index"}
"

third:
I registered the activity in the Activity.map like
"
activity.register :users

"

but I cant find the menuItem I was trying to add.Why?

thanks for help......

Actions #1

Updated by Jeffrey Jones about 14 years ago

  • Status changed from New to Resolved

I believe this was answered in the forums. You have to create a plugin and add via that method. That is what I ended up doing.

Actions #2

Updated by sean chan about 14 years ago

yes, I havn't realized that a plug-in can solve this (actually I havn't know there's a plug-in focus on Adding a Item)
and I do realize modifying the redmine.rb is quite a stupid idea.....;)
anyway , thanks for help
the answer 'Holger Just' offered in wiki plays the trick for me ,
http://www.redmine.org/wiki/redmine/Plugin_Tutorial#Extending-menus

Actions #3

Updated by Holger Just almost 14 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF