[pmwiki-users] icons for uploaded files but...
Hans
design5 at softflow.co.uk
Mon Nov 13 17:16:53 CST 2006
Monday, November 13, 2006, 10:37:09 PM, Nicholas wrote:
> But, I don't want the icons to be displayed for some
> files like .jpg or .gif
> can I introduce an 'if' statement into the markup
> below to choose which file extensions I want to show
> and which not. markup pasted below.
> #Icons for uploaded .xls .doc etc
> Markup('attachicon', 'inline',
> '/Attach:(.*?)\\.(\\w{1,4})/',
> 'http://localhost/wiki3nov/pub/icons/$2.png
> Attach:$1.$2');
If you have not got a jpg.png or a gif.png it will not display.
Hans
More information about the pmwiki-users
mailing list