[pmwiki-users] conditional for existence of a file?
Patrick R. Michaud
pmichaud at pobox.com
Thu Jul 7 11:54:13 CDT 2005
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.
Any thoughts?
Pm
> On Jul 5, 2005, at 6:05 PM, Patrick R. Michaud wrote:
>
> >On Tue, Jul 05, 2005 at 05:32:18PM +0300, Leigh Hausman wrote:
> >>It's more a mater of either displaying attachments-- via
> >>(:attachlist:)-- or, if there aren't any, display a note indicating
> >>that there are no attachments to be displayed.
> >
> >How would you like the note to read...?
> >
> >Pm
> >
> >
> >>On Jul 5, 2005, at 4:54 PM, Patrick R. Michaud wrote:
> >>
> >>>On Tue, Jul 05, 2005 at 11:25:43AM +0300, Leigh Hausman wrote:
> >>>>Is there a way to define a condition to test whether or not a file
> >>>>exists?
> >>>>
> >>>>My goal is to display file attachments or a notation saying that
> >>>>there are no attachments, and the easiest way seemed to be to check
> >>>>whether or not the $UploadsDir/$Fullname directory exists... though
> >>>>I'm open to other suggestions, if someone has a better way.
> >>>
> >>>Are you wanting to change this display for the (:attachlist:)
> >>>markup, or did you have something else in mind?
> >>>
> >>>Pm
> >>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users
More information about the pmwiki-users
mailing list