Contents
SymLink
Description
This will create a symlink to /path/to/a/server/side/filename in the containing page's attachments directory. You can then access that file from within the wiki with:
attachment:filename
(where filename has the leading directories stripped to leave just the file name).
Be aware that if a page is editable by anyone then anyone could insert calls to this macro in order make any file on your computer be an attachment to the page.
Usually, being able to access any file on a server from a web app is considered a severe security issue.
Download & Release Notes
Download |
Release Version |
Moin Version |
Release Notes |
20131031 |
1.5.8 |
final version by AlexisHuxley |
Usage
Syntax: [[SymLink(/path/to/a/server/side/filename)]]
Example
[[SymLink(/var/local/moin/AlexisWiki/data/plugin/macro/SymLink.py)]] attachment:SymLink.py
Copyright & license
(C) AlexisHuxley 2007-2011 and are distributed under the terms of the GPL.
Bugs