[pmwiki-users] Icons attached to uploaded files...how to implement the suggested solution?

Hans design5 at softflow.co.uk
Tue Nov 7 16:35:28 CST 2006


Tuesday, November 7, 2006, 9:46:44 PM, Nicholas wrote:

> Where do I put this markup?  I need to have the icon
> attached automatically when a user uploads say a .xls
> or .doc file.  It's too much to expect them to inlcude
> the above markup. Ideally they should use the PMWiki
> standard upload procedure and the icon is magically
> included on the page next to or instead of the link.

Place the markup in your local/config.php file.
Place the icons in pub/icons/ directory (create it).
On the wiki pages use the standard Attach:filename.ext syntax.
it will let you upload with the standard pmwiki upload window.
and it will show the icon according to your file extension next to the
file name automatically. No special markup on the page is necessary.
Exactly the magic you expect. ;-)


Hans





More information about the pmwiki-users mailing list