On Tuesday 15 December 2009 19:14:08 [email protected] wrote:
> I'm trying to organize the uploads directory.
>
> 1. For specific pages only: $UploadPrefixFmt = '/$Group/$Name';
> 2. for specific group only: $UploadPrefixFmt = '/$Group';
> 3. For the whole site: $UploadPrefixFmt = '';
>
> On some pages, I want the upload to be '/$Group/$Name'. On some, it's
> for the group. I don't want to repeat the image on every page of the
> group. The images in the sidebar are for the whole site.
In the SideBar or on any other page, you can always link to pictures attached
to another page, by providing the fully qualified link like this:
Attach:Group.Page/image.jpg | attached to a page, in per-page uploads
Attach:Group./image.jpg | attached to a group, in per-group uploads;
| note the dot after Group. Group.Page works too
It is recommended to define a single $UploadPrefixFmt in config.php and *not*
to change it in local/Group.Page.php files unless you have excellent reasons
to do it.
If you have different settings, you may be unable to link to attachments in
other Groups or Pages; some recipes dealing with attachments, like Mini or
RecentUploadsLog, may fail to work cross-group too.
PmWiki allows you amazing flexibility, but the changes you make may do exactly
what you *ask for*, which may be not exactly what you *want*. :-)
Petko
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users