GithubHelp home page GithubHelp logo

alexbevi / redmine_knowledgebase Goto Github PK

View Code? Open in Web Editor NEW
452.0 73.0 199.0 1.16 MB

A knowledgebase plugin for Redmine

Shell 1.63% Ruby 53.62% HTML 22.31% JavaScript 17.26% CSS 5.18%
redmine-plugin redmine ruby-on-rails

redmine_knowledgebase's Introduction

MAINTAINER NEEDED

The Redmine Knowledgebase is still receiving pull requests and issues, but does not have an active maintainer. I (@alexbevi) stepped away a number of years ago, and Robert (@robspearman) stepped in and took over. It's been a couple years now and Robert's availability is diminished so we're on the lookout for a new steward for the project. If you're interested shoot me an email at [email protected].

Redmine Knowledgebase Plugin

Overview

This plugin adds professional knowledgebase functionality to the Redmine project management application.

Recent Changes

  • Redmine 4.1.x support (thanks @Reshetov!)
  • No longer conflicts with Redmine CRM plugin.
  • Tiled visual indexes are now supported using thumbnails.
  • Articles are better formatted to work with more themes.
  • Tag logic is improved and critical tags can be defined easily.
  • Email notifications are better formatted.
  • Bug fixes.

Warnings

The latest version of this plugin is for Redmine 4.1.x. If you're still using an older Redmine, checkout tag v3.2.2 for Redmine 3.x or even the ancient redmine-2.x branch.

As of 4.1.x, this plugin can now coexist with the Redmine CRM plugin.

Introduction

Join the chat at https://gitter.im/alexbevi/redmine_knowledgebase

Redmine Plugin Extension and Development

Redmine is just plain awesome, and has proven to provide 90% of the functionality I need. The one feature that was missing was a usable knowledgebase component. I've looked at some of the open source solutions available, but couldn't find anything that fit my needs exactly. Seeing as Redmine is so easily extended, I figured why not create it for this platform instead of starting yet another project from scratch :P

SHAMELESS PLUG This plugin is discussed in Redmine Plugin Extension and Development, which is now available from Packt Publishing.

Features

  • Article versioning
  • View differences between versions
  • Email notifications and atom feeds
  • Categorization of articles
  • Article ratings
  • File attachments
  • Comment on articles
  • Article tagging
  • Visual indexes with thumbnails (optional)
  • Project-based permissions

Installation

To install the knowledgebase, execute the following commands from the root of your redmine directory, assuming that your RAILS_ENV enviroment variable is set to "production":

git clone git://github.com/alexbevi/redmine_knowledgebase.git plugins/redmine_knowledgebase
bundle install
rake redmine:plugins:migrate NAME=redmine_knowledgebase

More information on installing Redmine plugins can be found here: http://www.redmine.org/wiki/redmine/Plugins

After the plugin is installed and the db migration completed, you will need to restart Redmine for the plugin to be available.

Updating from v2.3.0 (Should work for all 2.x versions but has not been tested)

To update redmine from v2.3.0 to 3.0+ you will first want to delete redmine_knowledgebase from the the /plugins and /public/plugin_assets directories.

Once those two directories have been removed, run the following commands (as though you were performing a fresh installation):

git clone git://github.com/alexbevi/redmine_knowledgebase.git plugins/redmine_knowledgebase
bundle install
rake redmine:plugins:migrate NAME=redmine_knowledgebase

Upon restarting Redmine, the Knowledgebase entry will no longer appear as a :top_menu entry.

The knowledgebase is now project-specific, and therefore must be included in at least one project to work properly. If you wish to use it like v2.x, you can make a public project that will only be used to store knowledgebase articles.

You will need to go into your database now and change the kb_articles and kb_categories project_id to the project id of the knowledgebase project you just created.

You can find the id in the projects table.

To generate the full project list from the command line, you can run the following from the root of your Redmine installation:

rails runner "Project.all.map { |p| puts \"#{p.id}\t#{p.name}\" }"

This will produce a list similar to:

3    Plugin Development
4    KB 2.x
5    Global

If you want to move all existing categories to the above "Global" project, you could do this via:

rails runner "KbCategory.update_all(\"project_id = 5\")"
rails runner "KbArticle.update_all(\"project_id = 5\")"

Uninstall

rake redmine:plugins:migrate NAME=redmine_knowledgebase VERSION=0

User Guide

Overview

Once the Redmine Knowledgebase Plugin is installed, you will need to add the knowledgebase module to an existing or new project. Once you do so, there will be a Knowledgebase link in the Project menu bar.

Configuration

To start using the Knowledgebase plugin, click on the Knowledgebase link in the Project menu bar.

This takes you to the Knowledgebase home page. Because no articles or categories exist, you will see this message: "No categories have been created. Click Create Category to get started.". To the right is a green circle with a plus (+) sign, and the link to create a new Category.

Click on Create Category. This takes you to the Create Category page.

  • Root Category - since this is the first category, this is checked by default. Root categories show in the right hand Browse by Category sidebar.

  • Title - give the new category a title relevant to your needs. This title will show in the Browse by Category sidebar as a navigation link.

  • Description - provide a description of the category. This description will show on the category main page.

Click on Create to create the new category. You can edit this information again once the category is created by using the Edit link on the category main page.

The first category created is the parent category for all new categories.

You can continue to create as many new categories as needed, and add more new categories at any time. See Using the Knowledgebase for information on how to create sub-categories and add articles.

Once you have added categories to the Knowledgebase, there will be a Jump to Category drop down menu on the Knowledgebase home page. You can use that to navigate to any category or sub-category. You can also navigate to categories (not sub-categories) by clicking on the category name in the right hand Browse by Category side bar.

Using the Knowledgebase

Once you have created categories, you can then add articles and sub-categories.

Creating Sub-categories

To create a sub-category, click on a root category in the right hand Browse by Category sidebar, or use the Jump to Category drop down menu from the Knowledgebase Home page.

Once you are on the main page for that category, click on the New Category link on the right side of the page. This takes you to the Create Category page.

  • Root Category - uncheck this box if you want this to be a sub-category

  • Parent Category - choose the relevant parent category from the drop down menu. This option only appears if the Root Category checkbox is un-checked.

  • Title - give the new sub-category a title relevant to your needs.

  • Description - provide a description for the sub-category. This description will appear on the sub-category main page.

Click on Create to create the new sub-category. You can edit this information again by using the Edit link on the sub-category main page.

You can have sub-categories of sub-categories.

NOTE - sub-categories do not appear in the right hand Browse by Category side bar. Sub-categories only appear in the Jump to Category drop down menu on the Knowledgebase Home page, or in the category main pages.

In the Jump to Category drop down menu, sub-categories are shown with a leading > , sub sub-categories with a leading >> , etc.

Creating Articles

To create an Article, click on the Create Article link on the home page, or navigate to a category or sub-category, and click on the Create Article link. This opens the Create Article page.

  • Category - select the category or sub-category from the drop down menu

  • Title - give the article a relevant title

  • Summary - a short summary of what the article is about. This shows under the article on the category or sub-category main page.

  • Content - the content of the article. The Content section uses the Redmine Wiki formatting syntax, so anything that is possible in the Redmine Wiki is possible here.

  • Tags - add tags to the article Separate tags or tag groups with commas. Global tag search is currently not implemented, but is in development. Tag search is currently only available at the Article level.

  • Change Comments - This field enables you to record the changes made to the article each time you edit it. This comment, along with the date, time, and author/updater, will show in the article history table at the top of each article.

  • Files - attach any files or images to the article, along with an optional description. Note that the maximum size of the files or images that can be uploaded is 5MB.

Click on Create to add the article. Click on Preview to see how the article content will look and make any necessary changes before creating the article.

Managing Articles

Once you click on Create to add the article, the article is displayed. This page shows the title, summary and content of the article, the creator (Added by username), how long ago the article was created, and how many times it has been viewed.

You can also Edit or Delete the article, as well as rate the article. Clicking on any of the tags in the Tags section will search for any other articles with the same tags.

You can also comment on an article by clicking on Add a comment.

When editing the article, you will once again be able to enter a change comment as to what changed with this version of the article. This is useful to others who may be watching the article, and will allow them to get a brief idea of what change you made. They will also be able to see previous versions of the article if you allow them to, view highlighted differences between them, and revert to previous versions, if they have permission.

If you Watch the article, you will receive email notifications if the article is updated, deleted, or a comment is added. You can also watch an entire category, to be notified if any document in that category is created, edited, deleted, or commented on. You can also subscribe to atom feeds on article categories.

Using Wiki Macros

You can easily create links to articles and categories from issues or Wiki pages using the macros.

4 macros are available so far:

  • {{kb(<article_id>)}} will render a link to the "kb#<article_id>" format. (It may change according to your locale).
  • {{article_id(<article_id>)}}, identical to the kb macro, will render a link to the "kb#<article_id>" format.
  • {{article(<article_id>)}} will render a link to the "kb#<article_id>: <article_title>" format.
  • {{category(<category_id>)}} will render a link to the "<category_title>" format, only renders the title of the category.

Knowledgebase Home Page

Now that categories and articles have been created, the home page of the Knowledgebase will show lists of Recently Updated Articles, Most Popular Articles, and Top Rated Articles. You can adjust permissions to enable users to view these lists, or change how many documents are displayed in these lists. You can use this page to help navigate the Knowledgebase, as well as using the Jump to Category drop down menu or the Browse by Category menu on the right of the screen. You can reach this page from anywhere inside the Knowledgebase by clicking on the Home link.

About

  • Released under the MIT license. See LICENSE file.
  • Copyright (c) 2010-2016 Alex Bevilacqua, original author.
  • Modifications (c) 2016-2018 Rob Spearman.

This plugin would not be possible without the many contributions from the community. See AUTHORS for the full list.

redmine_knowledgebase's People

Contributors

acki avatar alexbevi avatar archonwang avatar codeinsider avatar crosspoints avatar duanejevon avatar fabiob avatar fljdin avatar furgas avatar guilhem avatar jwalkerbg avatar klou avatar kumattau avatar labriepierre avatar maple avatar martin-denizet avatar michaeljs1990 avatar namezero111111 avatar pochi avatar redkite127 avatar reshetov avatar robspearman avatar shoorick avatar syanagisawa avatar tim-luis avatar timlin avatar vhotspur avatar wate avatar y-yoshinoya avatar zoeeer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_knowledgebase's Issues

Upgrades

Hi,

What is your recommendation for applying updates? Reinstall all files and do a rake? Will it keep existing articles and preserve existing db structure?

German locale updated

German strings go here for Rails i18n

de:
knowledgebase_title: "Wissensbasis"
field_tag_list: "Tag Liste"
label_content: "Inhalt"
label_summary: "Zusammenfassung"
label_title: "Titel"
label_category: "Kategorie"
label_description: "Beschreibung"
label_home: "Home"
title_create_article: "Artikel erstellen"
title_edit_article: "Artikel ändern"
title_article_rating: "Artikel Rating"
title_votes: "Votes"
label_parent_category: "Übergeordnete Kategorie"
label_root_category: "Root Kategorie"
title_edit_category: "Kategorie ändern"
title_create_category: "Kategorie erzeugen"
label_title_articles: Artikel
label_title_category: Kategorie
label_article_plural: Artikel
label_category_plural: Kategorien

label_jump_category: "Zur Kategorie wechseln "
title_newest_articles: "Neueste Artikel"
title_recently_updated_articles: "Artikel zuletzt aktualisiert"
title_most_popular_articles: "Beliebteste Artikel"
title_top_rated_articles: "Bestbewertete Artikel"
title_browse_by_category: "Nach Kategorie"
title_new_category: "Neue Kategorie"

message_no_articles: "Es wurde noch kein Artikel eingegeben. Beginnen Sie mit einem Artikel zum Thema..."
label_new_article: "Artikel erstellen"
label_new_category: "Kategorie erstellen"
label_edit_category: "Kategorie bearbeiten"
label_delete_category: "Kategorie entfernen"
label_subcategories: "Unterkategorien"
allow_anon_access: "Anonymen Zugriff erlauben?"
allow_sort_category_tree: "Den Katgegoriebaum alphabetisch sortieren?"
show_category_totals: "Anzahl der Arctiel pro Katgeorie im Katgeoriebaum anzeigen?"
summary_item_limit: "Maximale Anzahl von Artikeln in der Übersicht"

ActiveRecord::StatementInvalid in KnowledgebaseController#index

Hi!

I got this issue after installing the plugin when I click on Knowledge base in the menu:

ActiveRecord::StatementInvalid in KnowledgebaseController#index

Mysql::Error: Table 'bitnami_redmine.kb_categories' doesn't exist: SELECT * FROM kb_categories

RAILS_ROOT: C:/Program Files/BitNami Redmine Stack/apps/redmine
Application Trace | Framework Trace | Full Trace

C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:219:in log' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:323:inexecute'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:608:in select' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:7:inselect_all_without_query_cache'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in select_all' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:81:incache_sql'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in select_all' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/base.rb:661:infind_by_sql'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/base.rb:1548:in find_every' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/base.rb:615:infind'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/plugins/redmine_knowledgebase/app/controllers/knowledgebase_controller.rb:8:in index' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:1331:insend'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:1331:in perform_action_without_filters' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/filters.rb:617:incall_filters'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in perform_action_without_benchmark' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:inperform_action_without_rescue'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in ms' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/1.8/benchmark.rb:308:inrealtime'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in ms' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:inperform_action_without_rescue'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in perform_action_without_flash' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/flash.rb:146:inperform_action'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:532:in send' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:532:inprocess_without_filters'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in process' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:391:inprocess'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/base.rb:386:in call' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:incall'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in dispatch' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in_call'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in call' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:incall'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in cache' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:incache'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in call' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:incall'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in call' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:incall'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in call' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:incall'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in call' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:incall'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in call' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:insynchronize'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in call' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:incall'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:44:in dispatch_cgi' C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:101:indispatch_cgi'
C:/Program Files/BitNami Redmine Stack/apps/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:27:in dispatch' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/rails.rb:76:inprocess'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/rails.rb:74:in synchronize' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/rails.rb:74:inprocess'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:159:in process_client' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:158:ineach'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:158:in process_client' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:inrun'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:in initialize' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:innew'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:285:in run' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:268:ininitialize'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:268:in new' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel.rb:268:inrun'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/configurator.rb:282:in run' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/configurator.rb:281:ineach'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/configurator.rb:281:in run' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:128:inrun'
C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/lib/mongrel/command.rb:212:in run' C:/Program Files/BitNami Redmine Stack/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:281 C:/Program Files/BitNami Redmine Stack/ruby/bin/mongrel_rails:19:inload'
C:/Program Files/BitNami Redmine Stack/ruby/bin/mongrel_rails:19

Request

Parameters:

None

Show session dump


Response

Headers:

{"Content-Type"=>"",
"Cache-Control"=>"no-cache"}

Permissions

Add support for role-based permissions. A global one should suffice for now, but setting permissions per article or per category would be nice in the future.

Searching

There is a checkbox when searching for Kb articles, but it does not appear to be working. When I search for a word in the only article I created nothing is being returned.

Categories does not delete

Redmine 1.3 + various plugins - but plugins don't affect error

Categories does not delete on empty category. Just returns.

The line that is the culprit is in app/views/categories/show.html.erb

changing from:

  • <%= link_to_if_authorized_globally l(:label_delete_category), { :controller => 'categories', :action => 'destroy', :id => @category.id }, :class => 'icon icon-del', :confirm => l(:text_are_you_sure) %>
  • to:

  • <%= link_to_if_authorized_globally l(:label_delete_category), { :controller => 'categories', :action => 'destroy', :id => @category.id }, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
  • fixes the issue.

    Installation problem with acts-as-taggable-on

    I had a problem installing the plugin. It was downloaded form github w/o problems. Then I started migration, it requested acts-as-taggable-on version 2.1.1. Installed it with "gem install" and after that started to receive this error:

    rake db:migrate_plugins RAILS_ENV=production

    (in /var/www/railsapp)
    rake aborted!
    can't activate , already activated acts-as-taggable-on-2.1.1

    Cannot install redmine_knowledgebase in Redmine 1.2.1

    Hi, everyone

    I have a problem when I install the plugin. It seems that cannot be installed in Redmine 1.2.1.
    when I download and upzip the plugin in Redmine in plugins folder, use this command:
    rake db:migrate_plugins RAILS_ENV=production

    but the command execute failed with errof information like this:

    D:\redmine>rake db:migrate:plugin NAME=redmine_knowledgebase RAILS_ENV=production --trace
    (in D:/redmine)
    ** Invoke db:migrate:plugin (first_time)
    ** Invoke environment (first_time)
    ** Execute environment
    rake aborted!
    no such file to load -- acts-as-taggable-on
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in gem_original_re quire' D:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:inrequire'
    D:/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:184:in require' D:/redmine/vendor/plugins/redmine_knowledgebase/init.rb:7:inevaluate_init_rb'
    D:/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:158:in evaluate_init_rb' D:/redmine/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:insilence
    _warnings'
    D:/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:154:in evaluate_init_rb' D:/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:48:inload'
    D:/redmine/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in load' D:/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:38:inload_plugins'
    D:/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in each' D:/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:inload_plugins'
    D:/redmine/config/../vendor/rails/railties/lib/initializer.rb:369:in load_plugins' D:/redmine/config/../vendor/rails/railties/lib/initializer.rb:165:inprocess'
    D:/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in send' D:/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:inrun'
    D:/redmine/config/environment.rb:20
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in gem_original_re quire' D:/RailsInstaller/Ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:inrequire'
    D:/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in require' D:/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:innew_constants_in'
    D:/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in require' D:/redmine/vendor/rails/railties/lib/tasks/misc.rake:4 D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:incall'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in execute' D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:ineach'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute' D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:ininvoke_with_call_c
    hain'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/monitor.rb:242:in synchronize' D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_c
    hain'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in invoke_prerequisit es' D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:ineach'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in invoke_prerequisit es' D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:ininvoke_with_call_c
    hain'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/1.8/monitor.rb:242:in synchronize' D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_c
    hain'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in invoke' D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_task'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:ineach'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exceptio
    n_handling'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level' D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:inrun'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exceptio n_handling' D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:inrun'
    D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
    D:/RailsInstaller/Ruby1.8.7/bin/rake:19:in `load'
    D:/RailsInstaller/Ruby1.8.7/bin/rake:19

    I guess that I have not installed the acts-as-taggable-on correctly or other reasons any more.

    Anybody could help me to install the plugin in detail ? Thanks so much.

    reinstall the knowledgebase contains error " Table 'redmine.kb_articles' doesn't exist"

    Hi, Alexbevi

    I uninstalled the knowledgebase and I want to reinstall it. but unfortnately, I can not uninstall the db completely. there's still tabel[articles] and [catetories] in dababase.
    so I delete manually.

    Now, I reinstall the plugin again. but when I raked db. there's always error as follows:

    Migrating plugin redmine_knowledgebase ...
    == AddAuthorToArticle: migrating =============================================
    -- add_column(:kb_articles, :author_id, :int, {:null=>false, :default=>0})
    rake aborted!
    An error has occurred, all later migrations canceled:

    Mysql::Error: Table 'redmine.kb_articles' doesn't exist: ALTER TABLE kb_articles ADD author_id i
    nt DEFAULT 0 NOT NULL

    It seems that the table articles and categories is lost. But I do not understand if I delete the table articles , rake db not check the db whether it should be create again .

    anyone can tell me the reason. Thanks.

    Getting error in rendering an article

    After creating a new article, I cannot view it:


    Processing ArticlesController#create (for 80.1.238.152 at 2011-06-14 23:48:14) [POST]
    Parameters: {"article"=>{"title"=>"test", "tag_list"=>"", "content"=>"test", "summary"=>"test"}, "commit"=>"Anlegen", "action"=>"create", "authenticity_token"=>"wGP7uDFO2JBf0AwYe9vOGyaRGPl+x71VnQlh11TURP4=", "category_id"=>"2", "controller"=>"articles", "attachments"=>{"1"=>{"description"=>""}}}

    ActiveRecord::StatementInvalid (Mysql::Error: Unknown column 'taggings.taggable_id' in 'where clause': SELECT tags.* FROM tags INNER JOIN taggings ON tags.id = taggings.tag_id WHERE ((taggings.taggable_id = 1) AND (taggings.taggable_type = 'Article')) ):
    vendor/plugins/redmine_knowledgebase/app/controllers/articles_controller.rb:27:in `create'

    Rendering /home/myself/servers/redmine-1.2/public/500.html (500 Internal Server Error)
    Exiting


    I already have run the migrations.

    Knowledgebase Home Page Stats

    Ok,

    Just an observation. When we post a new article, the KB home page displays the new article as "Newest Articles" and "Recently Updated Articles". It's confusing because a new article isnt' really an updated one. So, it can be confusing. Maybe it's best to detect if article is new, to only post it in Newest, not Updated. Make sense? Thank you!

    No images loaded

    Hi Alex,

    I installed the latest kb plugin just as instructed. I see the KB top menu and page comes up. However, there are no images loaded at all. Also, the text is simple. It seems as if there are no CSS loaded. Have you seen this? I ran rake again and rebooted, but nothing. Any ideas?

    Show Knowledgebase Update Summary on Redmine Landing Page

    As for many other plugins and for redmine core itsetlf the Redmine Start (Root) Page shows summaries of content and changes (like "new projects").
    Here is the best place to show summary updates for newest Articles, Recently Updated Articles, most Popular Articles, and top Rated Articles.
    Would be great if you can configure which boxes to show there.

    Only redmine admin can add and edit a KB article

    Hi, i have successfully installed the plugin so that redmine can serve as a KB server. I was able to add and edit new articles. However, when my officemate, which is not a redmine admin but has a developer rights, accessed the knowledgebase, he was able to only view the articles. He can't add new articles and he can't edit existing articles.

    Is there a way for admin to add permission to non-admins to add/edit kb articles?

    Couldn't install kowledgebase plugin: Table 'redmine.kb_categories' doesn't exist

    hi,
    i've upgrade my redmine 1.1.3 to 1.2.1 and tried to install your KB one more time. Firstly, i've this #47 issue too, but after this #47 (comment) tips it's solved, but steel exist my old issue: when KB installed, I click on KB main menu and KB doen not opens.
    How to create needed mysql tables?
    Thanks

    Logs:

    Processing KnowledgebaseController#index (for 10.6.6.2 at 2011-09-02 15:30:45) [GET]
    Parameters: {"action"=>"index", "controller"=>"knowledgebase"}

    ActiveRecord::StatementInvalid (Mysql::Error: Table 'redmine.kb_categories' doesn't exist: SELECT * FROM kb_categories ):
    vendor/plugins/redmine_knowledgebase/app/controllers/knowledgebase_controller.rb:17:in index' /usr/lib64/ruby/1.8/webrick/httpserver.rb:104:inservice'
    /usr/lib64/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib64/ruby/1.8/webrick/server.rb:173:instart_thread'
    /usr/lib64/ruby/1.8/webrick/server.rb:162:in start' /usr/lib64/ruby/1.8/webrick/server.rb:162:instart_thread'
    /usr/lib64/ruby/1.8/webrick/server.rb:95:in start' /usr/lib64/ruby/1.8/webrick/server.rb:92:ineach'
    /usr/lib64/ruby/1.8/webrick/server.rb:92:in start' /usr/lib64/ruby/1.8/webrick/server.rb:23:instart'
    /usr/lib64/ruby/1.8/webrick/server.rb:82:in `start'

    Rendering /srv/redmine/public/500.html (500 Internal Server Error)

    German Translation

    German strings go here for Rails i18n

    de:
    field_tag_list: "Tag Liste"
    label_content: "Inhalt"
    label_summary: "Zusammenfassung"
    label_title: "Titel"
    label_category: "Kategorie"
    label_description: "Beschreibung"
    label_home: "Home"
    title_create_article: "Artikel erstellen"
    title_edit_article: "Artikel ändern"
    title_article_rating: "Artikel Rating"
    title_votes: "Votes"
    label_parent_category: "Übergeordnete Kategorie"
    label_root_category: "Root Kategorie"
    title_edit_category: "Kategorie ändern"
    title_create_category: "Kategorie erzeugen"
    label_title_articles: Artikel
    label_title_category: Kategorie
    label_article_plural: Artikel
    label_category_plural: Kategorien
    label_root_category: Hauptkategorie
    knowledgebase_title: "Knowledge base"
    label_jump_category: "Zur Kategorie "
    title_newest_articles: "Neueste Artikel"
    title_recently_updated_articles: "Artikel zuletzt aktualisiert"
    title_most_popular_articles: "Beliebteste Artikel"
    title_top_rated_articles: "Bestbewertete Artikel"
    title_browse_by_category: "Nach Kategorie"
    title_new_category: "Neue Kategorie"
    title_create_category: "Kategorie anlegen"
    message_no_articles: "Es wurde noch kein Artikel eingegeben. Vielleicht kannst du das machen..."

    What *is* it?!

    This plugin looks really intriguing, but I can't exactly tell what it is. I need screenshots, and, if possible, a little demo site, so I can get a feel for what it does for me.

    Thanks!

    Updated for the zh.yml

    Hi, alexbevi

    I updated the zh.yml and paste the file content here. Please check it. Thanks.

    zh strings go here for Rails i18n

    zh:
    field_tag_list: "标签列表"
    label_content: "内容"
    label_summary: "摘要"
    label_title: "标题"
    label_category: "类别"
    label_description: "描述"
    label_home: "Home"
    title_create_article: "建立文章"
    title_edit_article: "编辑文章"
    title_article_rating: "文章评比"
    title_votes: "评分"
    label_parent_category: "父层类别"
    label_root_category: "根类别"
    title_edit_category: "编辑类别"
    title_create_category: "建立类别"
    label_title_articles: "文章"
    label_title_category: "类别"
    label_article_plural: "文章"
    label_category_plural: "类别"
    knowledgebase_title: "知识库"
    label_jump_category: "移至类别"
    title_newest_articles: "最新文章"
    title_recently_updated_articles: "最近更新的文章"
    title_most_popular_articles: "最热门文章"
    title_top_rated_articles: "评分最高的文章"
    title_browse_by_category: "根据分类浏览"
    title_new_category: "新分类"
    message_no_articles: "目前尚未有任何文章"
    allow_anon_access: "是否允许匿名访问?"
    allow_sort_category_tree: "类别树按字母排序?"
    show_category_totals: "在类别树中显示数量?"
    summary_item_limit: "知识库主页文章限制"
    #prefix for the macro links pointing to a Wiki article
    label_kb_link: "KB#{{kb_id}}"

    wiki links do not work

    When wiki links ([[link text]]) is in any text field of article, then wey are not viewed as links.

    table name collision?

    I think this may be a collision with the redmine_contacts plugin?

    rake db:migrate_plugins RAILS_ENV=production
    (in /srv/redmine)
    Migrating engines...
    Migrating acts_as_activity_provider...
    Migrating acts_as_attachable...
    Migrating acts_as_customizable...
    Migrating acts_as_event...
    Migrating acts_as_list...
    Migrating acts_as_searchable...
    Migrating acts_as_tree...
    Migrating acts_as_versioned...
    Migrating acts_as_watchable...
    Migrating awesome_nested_set...
    Migrating classic_pagination...
    Migrating coderay-0.9.2...
    Migrating gravatar...
    Migrating open_id_authentication...
    Migrating prepend_engine_views...
    Migrating redmine_code_review...
    Migrating redmine_contacts...
    Migrating redmine_knowledgebase...
    == CreateCategories: migrating ===============================================
    -- create_table(:kb_categories)
    -> 0.0022s
    == CreateCategories: migrated (0.0023s) ======================================

    == AddParentIdToCategories: migrating ========================================
    -- add_column(:kb_categories, :parent_id, :int)
    -> 0.0038s
    == AddParentIdToCategories: migrated (0.0039s) ===============================

    == CreateArticles: migrating =================================================
    -- create_table(:kb_articles)
    -> 0.0018s
    == CreateArticles: migrated (0.0019s) ========================================

    == AddAuthorToArticle: migrating =============================================
    -- add_column(:kb_articles, :author_id, :int, {:null=>false, :default=>0})
    -> 0.0112s
    == AddAuthorToArticle: migrated (0.0113s) ====================================

    == AddViewingTables: migrating ===============================================
    == AddViewingTables: migrated (0.0106s) ======================================

    == AddNestedSetBoundriesToCategory: migrating ================================
    -- add_column(:kb_categories, :lft, :int)
    -> 0.0033s
    -- add_column(:kb_categories, :rgt, :int)
    -> 0.0033s
    == AddNestedSetBoundriesToCategory: migrated (0.0068s) =======================

    == AddRatingsToArticles: migrating ===========================================
    == AddRatingsToArticles: migrated (0.0048s) ==================================

    == AddCommentsCountToArticles: migrating =====================================
    -- add_column(:kb_articles, :comments_count, :int)
    -> 0.0034s
    == AddCommentsCountToArticles: migrated (0.0035s) ============================

    == ActsAsTaggableMigration: migrating ========================================
    -- create_table(:tags)
    rake aborted!
    An error has occurred, all later migrations canceled:

    Mysql::Error: Table 'tags' already exists: CREATE TABLE tags (id int(11) DEFAULT NULL auto_increment PRIMARY KEY, name varchar(255)) ENGINE=InnoDB

    (See full trace by running task with --trace)
    root@bite:/srv/redmine#

    Error after install

    Hi, I downloaded and installed this plugin, and I'm getting an error when I click on the "Knowledgebase" top menu item:

    Processing KnowledgebaseController#index (for 99.63.160.124 at 2011-06-09 16:10:29) [GET]
    Parameters: {"action"=>"index", "controller"=>"knowledgebase"}
    Rendering template within layouts/base
    Rendering knowledgebase/index

    ActionView::TemplateError (undefined method `roots' for #Class:0xb4e597f0) on line #4 of vendor/plugins/redmine_knowledgebase/app/views/categories/_tree.html.erb:
    1:


    2:
    3:
    4: <% cats = Category.roots %>
    5: <% cats = cats.sort_by(&:title) if sort_categories? %>
    6: <% cats.each do |category| %>
    7: <%= render :partial => "categories/tree_row", :locals => { :category => category } %>

    It appears to have installed correctly, but I'm not sure quite what's causing the issue.

    Thanks for any help you can provide.

    Don't work article creation

    Redmine 1.0.4.stable.4448 (MySQL) Russian UI language + Knowledgebase 0.2.5

    log

    ActiveRecord::StatementInvalid (Mysql::Error: Unknown column
    'taggings.taggable_id' in 'where clause': SELECT tags.* FROM tags
    INNER JOIN taggings ON tags.id = taggings.tag_id WHERE
    ((taggings.taggable_id = 7) AND (taggings.taggable_type = 'Article')) ):

    vendor/plugins/redmine_knowledgebase/app/controllers/articles_controller.rb:24:in
    create' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in start' /usr/lib/ruby/1.8/webrick/server.rb:162:instart_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/lib/ruby/1.8/webrick/server.rb:92:ineach'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'

    Move Knowledgebase from header to project

    Alex-

    Great plugin! I have been looking for a plugin like this for a while. With this plugin +the redmine environment, i have moved away from trac. As my site will be private, i would like to move the knowledge base link from the header (top row) to the header row of the project? If not, is there a way to only display the link on the (global) header row only if the user is signed in?

    thanks in advance!

    sideone.

    Permissions: Non-members and View Articles only

    Hi,

    So after implementing the global permissions, it all worked quite well. I created roles for KB writers and managers. However, we have non-members that will just view the articles. When they open an article, they can see the links "New Article | New Category | Edit Category | Delete Category". Of course, clicking the link denies them the right and error appears. However, probably would be best to not even show the links to begin with. Thank you!

    1.3.0 compatible?

    Is your plug-in version 1.3.0 compatible? When I attempt to install I get the following error:

    [root@*****t]# script/plugin install git://github.com/alexbevi/redmine_knowledgebase.git
    NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
    Gem.source_index called from /var/www/vhosts/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.
    /usr/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:179:in fix_syck_default_key_in_requirements': uninitialized constant Gem::SyckDefaultKey (NameError) from /usr/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:178:ineach'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:178:in fix_syck_default_key_in_requirements' from /usr/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:129:inyaml_initialize'
    from /usr/lib/ruby/1.8/yaml.rb:133:in transfer' from /usr/lib/ruby/1.8/yaml.rb:133:innode_import'
    from /usr/lib/ruby/1.8/yaml.rb:133:in load' from /usr/lib/ruby/1.8/yaml.rb:133:inload'
    from /usr/lib/ruby/1.8/yaml.rb:144:in load_file' from /usr/lib/ruby/1.8/yaml.rb:143:inopen'
    from /usr/lib/ruby/1.8/yaml.rb:143:in load_file' from /var/www/vhosts/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:110:inload_specification'
    from /var/www/vhosts/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:48:in refresh!' from /var/www/vhosts/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:45:ineach'
    from /var/www/vhosts/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:45:in refresh!' from /var/www/vhosts/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:29:ininitialize'
    from /var/www/vhosts/redmineconfig/../vendor/rails/railties/lib/rails/gem_dependency.rb:21:in new' from /var/www/vhosts/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21:inadd_frozen_gem_path'
    from /var/www/vhosts/redminet/config/boot.rb:52:in load_initializer' from /var/www/vhosts/redmine/config/boot.rb:43:inrun'
    from /var/www/vhosts/redmine/config/boot.rb:16:in boot!' from /var/www/vhosts/redmine/config/boot.rb:119 from script/plugin:2:inrequire'
    from script/plugin:2

    Unable to delete article

    I'm unable to delete an article. Here is the error I get, any suggestions?

    Processing ArticlesController#destroy (for 192.168.55.3 at 2012-02-29 11:39:48) [DELETE]
      Parameters: {"action"=>"destroy", "controller"=>"articles", "authenticity_token"=>"bDqfJlWuEjgVA0ED6GbYNGZCyiQILLa4WVZBAJXOdp8=", "_method"=>"delete", "id"=>"2"}
    
    LoadError (Expected /usr/lib64/ruby/gems/1.8/gems/acts-as-taggable-on-2.1.1/lib/acts_as_taggable_on/acts_as_taggable_on.rb to define ActsAsTaggableOn::ActsAsTaggableOn):
      vendor/plugins/redmine_knowledgebase/app/controllers/articles_controller.rb:80:in `destroy'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/utils.rb:479:in `safe_fork'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:180:in `start'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
      /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/helper-scripts/passenger-spawn-server:99
    
    Rendering /var/www/vhosts/*******/public/500.html (500 Internal Server Error)

    Video upload in knowledgebase

    Hello,

    First of all Congratulations for this great plugin.

    Please add a feature to embedd videos of type html5 (Oggv).

    We are looking for how to embed html5 video tag in KB.

    Thanks,
    Kiran Patil.

    Project-based Knowledgebase rewrite

    Hi Alex,

    Just to let you know we forked your wonderful module and re-wrote it to support individual projects. You can now have separate articles / categories per project. Kb is tab based. Permissions work great. We added view permissions for the home page statistic. I rewrote the readme to explain the update. I've tagged it as v0.3.2, if you decide to merge. Checkout the whqcd fork. - josh

    It didn't seem to show a link of "Add a comment".

    On my server, only the admin can see a link "Add a comment", but others can't see it.
    It members except admin

    I already added all view rights to non menbers ,anonymous and developers under roles assign permissions.
    What should I do?

    Thanks you so much.

    zh.yml updated for newes version Sep 08, 2011

    Hi, alexbevi

    I've updated the zh.yml file for the newest version on Sep 08, 2011. Please check it. Thanks.

    zh:
    allow_anon_access: 是否允许匿名访问?
    allow_sort_category_tree: 类别树按字母排序?
    field_tag_list: 标签列表
    knowledgebase_title: 知识库
    label_article_created: "文章【'%{title}'】已创建"
    label_article_plural: 文章
    label_article_removed: "文章已移除"
    label_article_updated: "文章已更新"
    label_article_viewed:
    one: "已阅 1 次"
    other: "已阅 %{count} 次"
    label_category: 类别
    label_category_created: "类别【'%{title}'】已创建"
    label_category_deleted: "类别已删除"
    label_category_not_empty_cannot_delete: "当前类别下有文章,不能删除"
    label_category_plural: 类别
    label_category_updated: "类别已更新"
    label_content: 内容
    label_delete_article: 删除
    label_delete_category: 删除类型
    label_description: 描述
    label_edit_article: 编辑
    label_edit_category: 编辑类型
    label_home: Home
    label_jump_category: 移至类别
    label_kb_home: Home
    label_kb_link: "KB#{{kb_id}}"
    label_new_article: 新建文章
    label_new_category: 新建类型
    label_new_comment: "新增批注"
    label_parent_category: 父类别
    label_root_category: 根类别
    label_subcategories: 子类型
    label_summary: 摘要
    label_summary_newest_articles: "位于【%{category}】类别,创建于 %{ago} 之前"
    label_summary_popular_articles:
    one: "自 %{created} 起,已阅 1 次"
    other: "自 %{created} 起,已阅 %{count} 次"
    label_summary_toprated_articles:
    one: "综合评分: %{rating_avg}/%{rating_max} 来自于 1 次评分"
    other: "综合评分: %{rating_avg}/%{rating_max} 来自于 %{count} 次评分"
    label_summary_updated_articles: "更新于 %{ago} 之前"
    label_title: 标题
    label_title_articles: 文章
    label_title_category: 类别
    message_no_articles: 目前尚未有任何文章
    show_category_totals: 在类别树中显示数量?
    summary_item_limit: 知识库主页文章限制
    title_add_comment: "新增批注"
    title_article_rating: 文章评比
    title_browse_by_category: 根据分类浏览
    title_create_article: 建立文章
    title_create_category: 建立类别
    title_edit_article: 编辑文章
    title_edit_category: 编辑类别
    title_most_popular_articles: 最热门文章
    title_new_category: 新分类
    title_newest_articles: 最新文章
    title_recently_updated_articles: 最近更新的文章
    title_tagged_articles: "含【%{tag}】标签的文章"
    title_tags: 标签
    title_top_rated_articles: 评分最高的文章
    title_votes: 评分

    how to embed html5 videos in knowledgebase

    Hello,

    We want to embed html5 videos inside the article. Please let us know how to do it. We want to do as below,

    Your browser does not support the video element.

    Thanks,
    Kiran.

    It is possible to add permissions

    Congratulations for your work,
    I have a suggestion, it would be possible to add it as a module per project?
    Also would be nice if it could set different permission levels

    I try to do, if I do what I tell you

    a question about localization

    Hi, alexbevi

    I translate it into my localization language, but I found I can not use it .It always use the en.yml when I start the redmine.

    why it happened??

    Error "Missing the acts-as-taggable-on 2.0.0.rc1 gem..." though it has been installed

    I am trying to install this plugin in Chiliproject 2.5.0.
    I did:

    • sudo RAILS_ENV=production script/plugin install git://github.com/alexbevi/redmine_knowledgebase.git
    • sudo gem install -v=2.0.0.rc1 acts-as-taggable-on
    • sudo bundle exec rake db:migrate RAILS_ENV=production
      After the last one I still get the following error:
      "(in /usr/share/chiliproject) [redmine_knowledgebase] Missing the acts-as-taggable-on 2.0.0.rc1 gem. Pleasegem install -v=2.0.0.rc1 acts-as-taggable-on``

    What is wrong here?

    Breadcrumbs for articles

    This won't really work until categories are properly implemented with parent-child relationships

    How to update the plugin from the lower to newest version?

    I've ever installed the plugin v 0.3.2-devel, How can I update to the newest version?

    I tried to cover the old files and use command line
    rake db:migrate_plugins RAILS_ENV=production

    but it not works.Should I forget something???

    [root@localhost redmine]# rake db:migrate_plugins RAILS_ENV=production --trace
    (in /opt/redmine)
    ** Invoke db:migrate_plugins (first_time)
    ** Invoke environment (first_time)
    ** Execute environment
    rake aborted!
    no such file to load -- acts-as-taggable-on
    /usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' /usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire'
    /opt/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in require' /opt/redmine/vendor/plugins/redmine_knowledgebase/init.rb:7:inevaluate_init_rb'
    /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:158:in evaluate_init_rb' /opt/redmine/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:insilence_warnings'
    /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:154:in evaluate_init_rb' /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin.rb:48:inload'
    /opt/redmine/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in load' /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:38:inload_plugins'
    /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in each' /opt/redmine/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:inload_plugins'
    /opt/redmine/config/../vendor/rails/railties/lib/initializer.rb:369:in load_plugins' /opt/redmine/config/../vendor/rails/railties/lib/initializer.rb:165:inprocess'
    /opt/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in send' /opt/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:inrun'
    /opt/redmine/config/environment.rb:20
    /usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' /usr/local/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire'
    /opt/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in require' /opt/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:innew_constants_in'
    /opt/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in require' /opt/redmine/vendor/rails/railties/lib/tasks/misc.rake:4 /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:incall'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in execute' /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:ineach'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute' /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:ininvoke_with_call_chain'
    /usr/local/ruby/lib/ruby/1.8/monitor.rb:242:in synchronize' /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_chain'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in invoke_prerequisites' /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:ineach'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in invoke_prerequisites' /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:ininvoke_with_call_chain'
    /usr/local/ruby/lib/ruby/1.8/monitor.rb:242:in synchronize' /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:ininvoke_with_call_chain'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in invoke' /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:ininvoke_task'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:ineach'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level' /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level' /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:inrun'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:inrun'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
    /usr/local/ruby/bin/rake:19:in `load'
    /usr/local/ruby/bin/rake:19

    Knowledgebase only shown on selected projects

    Hi,

    We try to integrate Knowledgebase into our redmine. We have a couple of projects, some are for internal and some for external. We want Knowledgebase as only internal knowledge base - it means not all projects should see it. Can this be a new feature for the Knowledgebase plugin?

    Cheers,

    Article History

    Ok,

    Maybe this is a stretch, but our users have asked about revision changes. Right now, changes are lost. They'd like the ability to see history of article changes and be able to revert. The Redmine Wiki module has this built in for wiki pages, and it's a super feature. (http://www.redmine.org/projects/redmine/wiki/RedmineWikis). I think extending the ability to see history of articles and rolling back would be an important feature for articles. What do you think?

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.