[Pmwiki-users] per-page vs. group uploads
Patrick R. Michaud
pmichaud at pobox.com
Mon Jun 2 14:37:16 CDT 2003
I could probably switch $UploadPrefixFmt to allow an array of places to
search for attachments. Then one could do:
$UploadPrefixFmt =
array('/$Group.$Title_/','/$Group.HomePage/','/Main.HomePage/');
which would look for attachments in a per-page, per-group, and per-site
directory in that order. Of course, you could change the names of the
search directories to be whatever you wished.
Pm
On Mon, Jun 02, 2003 at 04:01:00PM -0300, fcecin at inf.ufrgs.br wrote:
>
> Hi. I've installed the local.php customisation for
> "per-page uploads":
>
> $UploadPrefixFmt = '/$Group.$Title_/';
>
> But I would also like to have some files accessible to
> all pages in a group, like before (say, an image that
> is used by many pages in the group)
>
> Can this be done now? If not, there could be a
> special page in every group (like GroupAttributes)
> where files that are not found are searched for there
> (no matter what $UploadPrefixFmt you are using,
> altough it would not be necessary when using the
> default $UploadPrefixFmt)
>
> This is not really necessary but would be nice and
> seems to affect only upload.php (?)
>
> Maybe this could be done by the upload script by
> trying again, when the file is not found, changing
> $Title to, say, 'GroupUploads' , and then applying
> $UploadPrefixFmt again in a second and last
> search. (?)
>
> - Fabio
>
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
>
More information about the pmwiki-users
mailing list