Book Image

Redmine Plugin Extension and Development

By : Alex Bevilacqua
Book Image

Redmine Plugin Extension and Development

By: Alex Bevilacqua

Overview of this book

Table of Contents (16 chapters)
Redmine Plugin Extension and Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Registering our plugin


The first step to setting up our plugin to be incorporated into Redmine's internal search is to register our model.

This is done in our plugin's init.rb file anywhere outside the Redmine::Plugin.register block, using the following code:

Redmine::Search.available_search_types << 'kb_articles'

Redmine is now aware of our plugin's model and will be looking for it whenever a project or global search is requested.