DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:winsharemedia

Windows Share Media (winsharemedia) Plugin

Compatible with DokuWiki

2012-10-13 "Adora Belle"

plugin Fetches files from Windows shares and sends them inline as HTTP attachments.

Last updated on
2012-11-09
Provides
Syntax, Action
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with links, samba, share, smb, windows

Description

This plugin converts links to files on Windows/Samba shares into download actions. When a user clicks these links, DokuWiki fetches the file from the share and serves the file “inline” as an HTTP attachment. This causes the browser to display a “Open” or “Save As” dialog.

Installation

Search and install the plugin using the Extension Manager, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Usage

A simple share link:

{{//server/share/path/to/file/file.pdf}}

Some more complex share links:

{{//server/share/path/to/file/file.ext&showpath=1}}
{{//server/share/path/to/file/file.ext&showicon=0|Very important document}}

Syntax

{{//url&params|title]}}

or

{{\\url&params|title]}}

Parameters and title are optional. Multiple parameters may be specified, concatenated by &.The following parameters are recognized:

Parameter Default Description
showpath false If true, displays the entire path name including server and share name as link text. If false, only displays filename and extension. This parameter is ignored if a title is given.
showicon true If true, displays an icon matching the file extension infront of the link, similar to media links. If false, a regular link without icon is generated.
target “target window for windows links” from link settings (wiki configuration) If specified, overwrites the default link target. The link target determines if the linked document opens in the same window/tab or if the browser shall open another window or tab.

Change Log

  • 2012-11-09
    • Initial release

ToDo/Wish List

  • This plugin has only been tested in a Windows environment (running on IIS7.5 with web server rewriting enabled). Test plugin on a Linux hosted wiki. Determine prerequisites (Samba client etc.)
  • Find out which account is used when the web server fetches a document. This might depend on the auth method used. What are the security implications?
plugin/winsharemedia.txt · Last modified: 2014-12-01 14:05 by Klap-in