[pmwiki-users] Attach: Syntax and the Default Upload Quick Reference

H. Fox haganfox at users.sourceforge.net
Sun Jan 29 16:35:27 CST 2006


On 1/29/06, Neil Herber <nospam at eton.ca> wrote:
> At 2006-01-28  08:45 PM -0700, H. Fox is rumored to have said:
> > > > Refer to an attached file in the same WikiGroup with
> > > >
> > > >     Attach:filename.ext
>
> What about installations where uploads are "per page" or "per wiki"
> rather than "per group"? Last time I looked, the admin could
> configure any of these scenarios.
>
> I use per wiki and per group on different installations, but I am
> thinking of switching to per page on one because of the large number
> of attachments - and because I use (:attachlist:) to display them dynamically.

That's a good point.  What's needed appears to be

    (:if <$UploadPrefixFmt is ''>:)
    One instruction (site-wide).
    (:if <$UploadPrefixFmt is ''/$Group'>:)
    Another instruction (by group).
    (:if <$UploadPrefixFmt is ''/$FullName'>:)
    Yet another instruction (by page).
    (:if:)

Hagan




More information about the pmwiki-users mailing list