On Fri, Apr 04, 2008 at 07:28:02AM -0500, Patrick R. Michaud wrote:

<snip>

> 
> One approach we (I?) could take in this situation would be to generalize
> $UploadPrefixFmt to be an array instead of a single value.  For example,
> we could have:
> 
>     $UploadPrefixFmt = array('/$Group/$Name', '/$Group');
> 
> which says to look in a per-page upload store first, and then
> look in the per-group directory.  Of course, we also need a way
> for ?action=upload to know where to store an attachment (since it
> may be different from one group to the next), but that could be 
> handled by introducing a new configuration variable that is set as a 
> per-group or per-page customizations.
> 

+1

This could also permit "draft" pages to display correctly when the
upload format includes $Name ...

Rgds,
--
Mike Bishop 
Willow, Alaska

_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to