O'Reilly logo

Redmine Plugin Extension and Development by Alex Bevilacqua

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Diving into the initialization file

Every Redmine plugin requires an initialization file (init.rb) to be included in order for the plugin to be registered with Redmine upon startup.

A stripped down version of the initialization file we'll be working on is included in the following snippet to highlight some of the attributes and helpers that are available:

Redmine::Plugin.register :redmine_knowledgebase do name 'Knowledgebase' author 'Alex Bevilacqua' author_url 'http://www.alexbevi.com' description 'a knowledgebase plugin for Redmine' url 'https://github.com/alexbevi/redmine_knowledgebase' version ' 3.0.0' requires_redmine :version_or_higher => '2.0.0' settings :default => { :sort_category_tree => true, :show_category_totals => true, :summary_limit ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required