Project

General

Profile

Project menu bar dissapeared when add new plugin

Added by Trần Đức Toàn over 10 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


Replies (5)

RE: Project menu bar dissapeared when add new plugin - Added by Trần Đức Toàn over 10 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 over 10 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 over 10 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 over 10 years ago

(of course the @project variable is supposed to contain a Project object pointing to the current project...)

    (1-5/5)