[pmwiki-users] icons for uploaded files but...

Nicholas Buttle nicholas_buttle at yahoo.com
Mon Nov 13 16:37:09 CST 2006


Hi

After help from the group I've managed to get an icon
displayed for links to eg. .mov .doc .xls files etc

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');

TIA

Nicholas 


 
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index




More information about the pmwiki-users mailing list