Add simple tagging support to Redmine Issues/Wiki pages
Ruby
Pull request Compare This branch is 227 commits behind Restream:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
assets
config/locales
lang
lib
test
README.rdoc
init.rb

README.rdoc

Tagging

Simple tagging using wiki macros. In your issue or wikipage body you can use

{{tag(some tags, here or-there)}}

which will tag your object with #some #tags #here #or-there. Tags can only consist of letters, numbers or a dash, run together. spaces or commas will act as a separator.

{{tagcloud}} will render a tag cloud. Most likely use would be in an wiki sidebar. The tagcloud will automatically be rendered in the issues list sidebar.

This plugin needs acts-as-taggable-on (github.com/rymai/acts-as-taggable-on) to be installed. The original plugin from github.com/mbleigh/acts-as-taggable-on needs patches to make it compatible with rails 2.3.5, which Redmine uses.

Installation

While patches to acts-as-taggable-on are not merged to upstream, you should use a fork of it. Installation is performed with:

$ script/plugin install git://github.com/rymai/acts-as-taggable-on.git
$ script/plugin install git://github.com/friflaj/redmine_tagging.git

You need to set up database for acts-as-taggable-on. Shortly, do:

1a) for Rails 2 (which Redmine currently uses):

$ script/generate acts_as_taggable_on_migration

1b) for Rails 3:

$ rails generation acts_as_taggable_on:migration

2)

$ rails db:migrate

See the README of acts-as-taggable-on for details.