On Sunday 21 January 2007 17:31, Pm wrote:
> > > My idea was to split the $Group directories inside a directory named by
> > > its' first letter: like:
> > >    Main.HomePage -> wiki.d/M/Main/Main.HomePage
> > >    Site.SomePage -> wiki.d/S/Site/Site.SomePage

> You figured it out exactly -- well done.
>
> FWIW, the standard method I've been using for this is:
>
>     $FmtPV['$Group1'] = '$group{0}';
>     $WikiDir = new PageStore('wiki.d/$Group1/$Group/$FullName');
>
> ("$Group1" here means "first letter of $Group".)
>

Just a note for the list archive : if one has lots of Groups, one may wish to 
also sub-divide the upload directories. It is easily done by setting this in 
config.php:

   $FmtPV['$Group1'] = '$group{0}';
   $WikiDir = new PageStore('wiki.d/$Group1/$Group/$FullName');
   $UploadPrefixFmt = '/$Group1/$Group';

For $UploadPrefixFmt see http://pmwiki.org/wiki/PmWiki/UploadsAdmin .

Petko

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to