[pmwiki-users] how to hide upload links for nonexistent attachments

Petko Yotov 5ko at free.fr
Mon Aug 27 10:57:22 CDT 2007


On Wednesday 08 August 2007, Ben Stallings wrote:
> Hello again.  I'm trying to do something that ought to be simple, but
> I'm not sure how to go about it...
>
> I'm writing a pagelist template and want to display an image whose name
> matches the name of the listed page if that image exists, and not
> display anything at all if the image doesn't exist.  But
> Attach:{=$Name}.jpg and (:thumb {=$Name}.jpg:) both display an upload
> link if the file doesn't exist.

From version ThumbList-2007-08-19 and newer, there is a new parameter quiet=3 
which will suppresses warnings and Attach links:
  (:thumb "{=$Name}.jpg" quiet=3:)

Check out the documentation for more information.

Petko




More information about the pmwiki-users mailing list