Extension:FileSystemListing

The FileSystemListing extension provides an easy way to list filesystem contents on your webserver.

The initial intention was to easily map a link for each file provided for download on a website that uses MediaWiki as its backend, and render directory contents nicely inside an article called 'Downloads'.

The author hopes it will be useful, and also extended to provide more functionality

How to use
To use, simply put on your wiki page something like: For the Files/Directorys list:  note: fileprefix="test/sub" // will link to /wiki/test/sub/filename

for the DateTime of an file : ''' '''

The code
Here is the source code. If somebody has more time to see how can be added to the SVN repository, it'll be nice!

Use with FCKEditor
I have noticed that FCKEditor alters some HTML tags as they are entered. This proved to be the case with the custom tag, where the dir="" would be removed.

By replacing $dir = $argv['dir']; with $dir = $argv['name'];

in the function function renderDirList( $input, $argv ) above, FCKeditor allows the argument in the tag to be preserved.

Usage then changes to .