Petko, Thanks for that solution. You are indeed correct that this is something best set at the beginning when setting up a wiki. Since my site is now operational and contains many attachments, I'll wait for an official solution from PM.
In my wiki the users are definitely confused by the presence of attachments unrelated to the page they're viewing and if I can justify the time one day I may just follow your procedure anyway. Regards, Melvyn -----Original Message----- From: Petko Yotov [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 30, 2007 9:45 PM To: [email protected] Cc: Patrick R. Michaud; Mildiner, Melvyn Subject: Re: [pmwiki-users] Uploads/Attachments per PAGE not group? Replying to ... > On Wed, May 30, 2007 at 03:21:02PM +0300, Mildiner, Melvyn wrote: > > When I click "Attach" I'm shown a list of all attachments for the group. > > I'd rather see just the attachments for the specific page that I'm on, > > is that possible? You can have all pictures uploaded to separate directories, one for each page, by adding this to config.php: $UploadPrefixFmt = '/$Group/$Name'; This way, both the "Attach" link and the markup (:attachlist:) will list only files attached to the current page instead of group. Attach:Picture.jpg will only work for files attached to the current page, but you can always link or display files in other pages like this: Attach:OtherPage/Picture.jpg : to another page (same group) Attach:OtherGroup.OtherPage/Picture.jpg See: http://www.pmwiki.org/wiki/PmWiki/UploadsAdmin Note that if you change this setting PmWiki will not anymore see your previously uploaded files untill you move them in the correct new directories, so on an existing wiki this may need some extra work. FWIW on all my installations first thing I set this per-page upload directories, I believe it is more straightforward and more consistent with the users' expectations about files attached to pages. Thanks, Petko __________________________________________________________________________________________ This electronic message contains information from Verint Systems, which may be privileged and confidential. The information is intended to be for the use of the individual(s)or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by replying to this email (1). _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
