[pmwiki-users] how to display download link only if file exists?

SteP step.list+pmwiki at gmail.com
Wed Mar 14 04:10:11 CDT 2007


Is there a way to display a download link only if the file exists in the 
upload directory? The constraints are that uploads are disabled in the 
group/page that needs to display the download links.

Experimentally, Attach:file just disappears when uploads are disabled, 
regardless of whether file exists in the upload directory. Arguably, 
Attach:file should disappear only if downloads are disabled and file 
doesn't exist. This would provide the solution I'm looking for. But, is 
there another way?

TIA
--SteP




More information about the pmwiki-users mailing list