This plugin tries to map known mime types commonly found on the internet to an icon set.
There are not many icon sets that have a got coverage of mime types despite looking nicely,
yet still coherent, not too exotic so that they can be used with a variety of web designs
without too much of a problem.
MimeIconPlugin comes with two complete icon sets, namely oxygen, crystal and papirus provided in
several sizes.
Usage
MimeIconPlugin implements a single macro %MIMEICON which returns the right icon
in the desired size of an icon theme for a given file.
For instance you type:
will give you:
if this plugin is installed.
The idea is that you can pretty much throw any file at it and %MIMEICON will return the right icon for it
reflecting the mimetype of this file. Well, obviously there is a fallback to a neutral icon in case some
file extension is totally unknown.
REST service
The get endpoint allows to retrieve a proper icon for a given mime type or file.
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. "Extensions Operation and Maintenance" Tab → "Install, Update or Remove extensions" Tab. Click the "Search for Extensions" button.
Enter part of the extension name or description and press search. Select the desired extension(s) and click install. If an extension is already installed, it will not show up in the
search results.
You can also install from the shell by running the extension installer as the web server user: (Be sure to run as the webserver user, not as root!)
cd /path/to/foswiki
perl tools/extension_installer <NameOfExtension> install