redmine_wiki_unc
redmine_wiki_unc copied to clipboard
Plugin for Redmine to create a link tag links to files on Windows network share.
= wiki_unc
== What is this?
This plugin provides an ability to make a link to files on your server share.
== How to Install
A. If you have 'git' installed on your system:
-
Run the commands below:
$ cd $(REDMINE_HOME) $ ruby script/plugin install git://github.com/bearmini/redmine_wiki_unc.git
-
Restart Redmine
B. Otherwise
-
Download an archived version (.zip file) of the plugin from http://github.com/bearmini/redmine_wiki_unc/zipball/master
-
Unzip it. You are going to have redmine_wiki_unc_xxxxxxx directory. ('xxxxxxx' might be a combination of some characters)
-
Move the directory into redmine\vendor\plugins\ directory. (You'll get redmine\vendor\plugins\redmine_wiki_unc_xxxxxxx
directory and have some files in the directory.) -
Restart Redmine
Note: Currently you don't have to do 'rake db:migrate_plugins' because this plugin does not use DBs.
== How to use
-
Wherever you can use Wiki notation, you can write 'unc' macro like this:
{{unc(\server-name\dir\to\file)}}
The path is the thing just copied from Windows Explorer. You need to trim double quotation marks ("...") surrounding the path if exists. The path can be containing white-space without the double quotation marks. The path cannot be containing comma(,).
-
Then you'll get the HTML tags below:
\server-name\dir\to\file
You can save time to type '/' 5 times! :)
== How to update the installed version
A. If you have the old version installed using 'git':
-
Run the commands below:
$ cd $(REDMINE_HOME)/vendor/plugins/redmien_wiki_unc $ git pull origin master
-
Restart Redmine
B. Otherwise
- Repeat the steps for the installation. (Taking a backup -- just copying the plugin directory to other place -- is recomennded)
== Tips
-
You can specify a 'label' instead of displaying UNC path.
{{unc(\server-name\dir\to\file, Label of the file)}}
Then you'll get the HTML tags below:
Label of the file
-
If you are using Firefox, you'll be happy with LocalLink plugin. (Update: The plugin is currently not working with the latest version of Firefox.)
If you are using Chrome, you'll be happy with LocalLinks plugin. https://chrome.google.com/webstore/search/LocalLinks
Internet Explorer can handle file:// scheme without any add-ons.
For other browsers, please let me know how to work with file:// scheme happily.
-
You can create a link from the Wiki Toolbar button.
[link:toolbar.png]