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

Patrick R. Michaud pmichaud at pobox.com
Thu Jul 7 16:08:42 CDT 2005


On Thu, Jul 07, 2005 at 02:38:48PM -0500, Jonathan Scott Duff wrote:
> On Thu, Jul 07, 2005 at 11:54:13AM -0500, Patrick R. Michaud wrote:
> > On Tue, Jul 05, 2005 at 06:19:10PM +0300, Leigh Hausman wrote:
> > > Er, something like, "There are no attachments associated with this 
> > > page," maybe?
> > 
> > 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.
> 
> The former doesn't make any sense to me really.  How would that look?
> (:attachlist none="There are no attachments":)

No, I was thinking it would be a configuration variable, as in

    $UploadListEmptyFmt = "There are no attachments"

Pm



More information about the pmwiki-users mailing list