首页 > 解决方案 > 在 Redmine 中,如何在项目菜单栏中添加我的自定义插件?

问题描述

我正在尝试将我的插件添加到项目的菜单中,例如。我想将我的插件用作:https://redmine-site/projects/test-project/my-plugin

就像在这张图片中一样,我想在菜单中花费时间之后链接我的插件。

标签: ruby-on-railsredmineredmine-plugins

解决方案


您可以在项目菜单中添加指向您的自定义控制器(或任何其他地方)的链接。在您的 init.rb 中使用此代码

menu :project_menu, :plugin_example, { controller: :example, action: :say_hello}, caption: :label_sample, after: :time_entries, :param => :project_id

推荐阅读