Project menu bar dissapeared when add new plugin
Added by Trần Đức Toàn almost 11 years ago
I am begginer in development redmine. I created plugin, and added it into project menu. But when i clicked to this tab, it's not link to page what i want, project menu bar dissapeared. It's hard to control all activitites on project managament.You can see my attached picture. What should i do, need your help. Thanks in advance
project menu bar.png (57.4 KB) project menu bar.png | |||
right link.png (64.7 KB) right link.png | |||
my new plugin link.png (41.2 KB) my new plugin link.png |
Replies (5)
RE: Project menu bar dissapeared when add new plugin - Added by Marco Gutsche almost 11 years ago
Maybe this tutorial helps you: http://www.redmine.org/projects/redmine/wiki/Plugin_Tutorial
The chapter Extending the project menu.
RE: Project menu bar dissapeared when add new plugin - Added by Trần Đức Toàn almost 11 years ago
I already code following your tutorial before ask question, but i cannot see project menu bar. Can you give me any idea for that?
RE: Project menu bar dissapeared when add new plugin - Added by Trần Đức Toàn almost 11 years ago
Hi Marco Gutsche,this tutorial apply for application menu, in my case, i developed a plugin for project menu, but the link is wrong. And I don't know how to resolve this problem :)
RE: Project menu bar dissapeared when add new plugin - Added by Jean-Baptiste Barth almost 11 years ago
The project menu is displayed as soon as you have a @project
instance variable defined when rendering. It's usually done in the controller in a before filter. If so, Redmine assumes your in a project context and displays this menu, otherwise it displays the "application_menu".
See app/views/layouts/base.html.erb
and lib/redmine/menu_manager.rb
for more details
RE: Project menu bar dissapeared when add new plugin - Added by Jean-Baptiste Barth almost 11 years ago
(of course the @project
variable is supposed to contain a Project
object pointing to the current project...)