[pmwiki-users] conditional for existence of a file?

Patrick R. Michaud pmichaud at pobox.com
Thu Jul 7 20:45:37 CDT 2005


> At 2005-07-07  11:54 AM -0500, Patrick R. Michaud is rumored to have said:
> I'm trying to decide if this should be part of the (:attachlist:)
> markup or if it should be a conditional that can be used in
> an   (:if attachments:) ... (:ifend:) sequence.

Now available as (:if attachments:) ... (:ifend:) in 2.0.beta42 
(just released).

If you want to display something only if there are not any attachments
available, use (:if !attachments:) ... (:ifend:), thus:


   (:if attachments:)
   Here are the available attachments:
   (:attachlist:)
   (:if !attachments:)
   This page has no attachments available.
   (:ifend:)

Pm



More information about the pmwiki-users mailing list